Browse Source

Update src/lib.rs

Co-authored-by: Mark Drobnak <mark.drobnak@gmail.com>
pull/6/head
Ian Chamberlain 3 years ago committed by GitHub
parent
commit
f9db3a9101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/lib.rs

2
src/lib.rs

@ -58,7 +58,7 @@ unsafe extern "C" fn clock_gettime( @@ -58,7 +58,7 @@ unsafe extern "C" fn clock_gettime(
retval = libc::gettimeofday(tv.as_mut_ptr(), ptr::null_mut());
if retval == 0 {
let tv = tv.assume_init();
(*tp).tv_nsec = (tv.tv_usec * 1000).into();
(*tp).tv_nsec = tv.tv_usec * 1000;
(*tp).tv_sec = tv.tv_sec;
}
}

Loading…
Cancel
Save