logkeys icon indicating copy to clipboard operation
logkeys copied to clipboard

Notice: offset in logged timestamps

Open ghost opened this issue 7 years ago • 1 comments

I've noticed that there is an offset in the timestamps logged in the output file.

This seems to be caused because the next event's timestamp is written in the output file right after an event's happening, even if the next event is to happen several minutes/hours/days later.

Logging started ...

2018-02-16 20:24:21+0000 > Logging started ...

2018-02-20 19:08:12+0000 > 03458263 <-scanned the 20
2018-02-20 19:08:29+0000 > 03458263 <-scanned the 20
2018-02-20 19:08:32+0000 > 03458263 <-scanned the 21 but timestamp written the 20 
2018-02-21 18:16:50+0000 > 03458263 <-scanned the 21
2018-02-21 18:17:24+0000 > <-timestamp already written in file, even if the event haven't happened yet

This is not an actual issue nor a source of great imprecision (if we are aware of it) but i still think this could be adressed easely (at first glance).

Best regards

ghost avatar Feb 21 '18 18:02 ghost

Yeah, the timestamp is printed when Enter key is pressed.

kernc avatar Feb 22 '18 01:02 kernc