Browse Source

fix Instant impl

pull/10/head
Fenrir 8 years ago
parent
commit
f6a8aea497
  1. 4
      ctr-std/src/sys/unix/time.rs

4
ctr-std/src/sys/unix/time.rs

@ -138,8 +138,8 @@ mod inner {
let ms = monotonic_ms(); let ms = monotonic_ms();
let s = libc::timeval { let s = libc::timeval {
tv_sec: ms as i32 * 1_000_000, tv_sec: (ms / 1_000_000) as i32,
tv_usec: ms as i32, tv_usec: (ms % 1_000_000) as i32,
}; };
return Instant::from(s) return Instant::from(s)
} }

Loading…
Cancel
Save