Fix tv_usec calculation

This commit is contained in:
Corey Richardson 2017-05-28 17:49:36 -04:00
parent d9c9225fa0
commit c6076443aa
No known key found for this signature in database
GPG key ID: A89E9F8FB71E9B8B

View file

@ -851,7 +851,7 @@ impl Device {
unsafe { clock_gettime(self.clock, &mut time); }
let time = libc::timeval {
tv_sec: time.tv_sec,
tv_usec: time.tv_nsec * 1000,
tv_usec: time.tv_nsec / 1000,
};
if self.ty.contains(KEY) {