summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/evemu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evemu.c b/src/evemu.c
index 7ca4c78..ee24631 100644
--- a/src/evemu.c
+++ b/src/evemu.c
@@ -768,7 +768,7 @@ int evemu_record(FILE *fp, int fd, int ms)
long time;
if (offset == 0)
- offset = time_to_long(&ev.time);
+ offset = time_to_long(&ev.time) - 1;
time = time_to_long(&ev.time);
ev.time = long_to_time(time - offset);