File 0004-imklog-convert-to-kmsg-timestamp-s-us-to-ns-first.patch of Package rsyslog.1232

From 3ba75ad2f5338a59e1442462dff5eb83ab26cef9 Mon Sep 17 00:00:00 2001
From: Marius Tomaschewski <mt@suse.de>
Date: Wed, 21 Nov 2012 13:47:44 +0100
References: bnc#783967
Upstream: merged
Url: http://git.adiscon.com/?p=rsyslog.git;a=commit;h=b78af2aaf546cee90671513be39d8e3717f2ace6
Subject: [PATCH] imklog: convert to kmsg timestamp's us to ns first

---
 plugins/imklog/bsd.c |    1 +
 1 Datei geändert, 1 Zeile hinzugefügt(+)

diff --git a/plugins/imklog/bsd.c b/plugins/imklog/bsd.c
index 0603237..d079072 100644
--- a/plugins/imklog/bsd.c
+++ b/plugins/imklog/bsd.c
@@ -114,6 +114,7 @@ submitSyslog(int pri, uchar *buf)
 		nsecs = nsecs * 10 + buf[i] - '0';
 		++i;
 	}
+	nsecs *= 1000; /* convert to ns first */
 	if(buf[i] != ']') {
 		DBGPRINTF("no trailing ']' --> no kernel timestamp\n");
 		goto done; /* no TS! */
-- 
1.7.10.4

openSUSE Build Service is sponsored by