mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 09:50:44 +01:00
tools/record: fix delta times not being relative
Missing last_time assignment caused the delta time between events to be
the total time.
Fixes: a202ed6115 ("Use a newtype usec_t for timestamps for better type-safety")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1448>
This commit is contained in:
parent
a521d054d4
commit
ad857a51a4
1 changed files with 1 additions and 0 deletions
|
|
@ -257,6 +257,7 @@ print_evdev_event(struct record_device *dev, struct input_event *ev)
|
|||
|
||||
usec_t time = input_event_time(ev);
|
||||
usec_t dt = usec_delta(time, last_time);
|
||||
last_time = time;
|
||||
|
||||
snprintf(desc,
|
||||
sizeof(desc),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue