Fix tv_usec calculation
This commit is contained in:
parent
d9c9225fa0
commit
c6076443aa
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue