From ba35121290edd835f4b562d6b824fea3103086e9 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 9 Jul 2023 10:50:07 +0200 Subject: [PATCH] Fix #64: sub-second faking of kernel timestamps Signed-off-by: Joachim Wiberg --- src/syslogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syslogd.c b/src/syslogd.c index bd02756..b63e030 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -1404,7 +1404,7 @@ void printsys(char *msg) tv.tv_sec = time(NULL); tv.tv_usec = 0; } - ustime = tv.tv_usec * 1000000; + ustime = tv.tv_usec; } localtime_r(&now, &buffer.timestamp.tm);