mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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) => {
|
Some(t) => {
|
||||||
let now = time::get_time().sec;
|
let now = time::get_time().sec;
|
||||||
let boottime = t as i64;
|
let boottime = t as i64;
|
||||||
(now - boottime)
|
now - boottime
|
||||||
}
|
}
|
||||||
_ => -1,
|
_ => -1,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue