projects
/
platform
/
upstream
/
libevdev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a61299
)
tools: use uint64_t, not doubles for the µs parameters
author
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 15 Sep 2016 21:26:42 +0000
(07:26 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 15 Sep 2016 21:26:42 +0000
(07:26 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/mouse-dpi-tool.c
patch
|
blob
|
history
diff --git
a/tools/mouse-dpi-tool.c
b/tools/mouse-dpi-tool.c
index 7f0e7be6bc36f742b8d73315fe82fc218cae0c99..905fb32d5d6037a76698394f430766dc1d7a6857 100644
(file)
--- a/
tools/mouse-dpi-tool.c
+++ b/
tools/mouse-dpi-tool.c
@@
-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);
}