mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
Update src/uu/uptime/src/uptime.rs
Co-authored-by: Roy Ivy III <rivy.dev@gmail.com>
This commit is contained in:
parent
340b5badda
commit
3994af5678
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ fn get_uptime(boot_time: Option<time_t>) -> i64 {
|
|||
Some(t) => {
|
||||
let now = time::get_time().sec;
|
||||
let boottime = t as i64;
|
||||
(now - boottime)
|
||||
now - boottime
|
||||
}
|
||||
_ => -1,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue