Fix #64: sub-second faking of kernel timestamps

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2023-07-09 10:50:07 +02:00
parent 7e8243e48f
commit ba35121290

View File

@ -1404,7 +1404,7 @@ void printsys(char *msg)
tv.tv_sec = time(NULL); tv.tv_sec = time(NULL);
tv.tv_usec = 0; tv.tv_usec = 0;
} }
ustime = tv.tv_usec * 1000000; ustime = tv.tv_usec;
} }
localtime_r(&now, &buffer.timestamp.tm); localtime_r(&now, &buffer.timestamp.tm);