diff --git a/src/lib.rs b/src/lib.rs index 0743aa1..eaf26b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) {