1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Fix build failure for systems with a non-64-bit time_t.

This commit is contained in:
Owen Rodley 2014-06-19 00:42:34 +12:00
parent 360daca1aa
commit dfd6e1e5ed

View file

@ -165,7 +165,7 @@ fn get_uptime(boot_time: Option<time_t>) -> i64 {
_ => return match boot_time {
Some(t) => {
let now = unsafe { time(null()) };
(now - t) * 100 // Return in ms
((now - t) * 100) as i64 // Return in ms
},
_ => -1
}