mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-28 14:20:07 +01:00
tools: use uint64_t, not doubles for the µs parameters
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2a612997ab
commit
94385480ff
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ tv2us(const struct timeval *tv)
|
|||
}
|
||||
|
||||
static inline double
|
||||
get_frequency(double last, double current)
|
||||
get_frequency(uint64_t last, uint64_t current)
|
||||
{
|
||||
return 1000000.0/(current - last);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue