mirror of
https://github.com/uutils/coreutils
synced 2024-09-06 16:03:44 +00:00
Merge pull request #270 from orodley/fix-32-bit-build
Fix build failure for systems with a non-64-bit time_t.
This commit is contained in:
commit
6039626490
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue