From 94385480ff7e49bf7f011598f80a10e817cf9fb4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 16 Sep 2016 07:26:42 +1000 Subject: [PATCH] =?UTF-8?q?tools:=20use=20uint64=5Ft,=20not=20doubles=20fo?= =?UTF-8?q?r=20the=20=C2=B5s=20parameters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Hutterer --- tools/mouse-dpi-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mouse-dpi-tool.c b/tools/mouse-dpi-tool.c index 7f0e7be..905fb32 100644 --- 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); }