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:
Peter Hutterer 2016-09-16 07:26:42 +10:00
parent 2a612997ab
commit 94385480ff

View file

@ -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);
}