mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 22:17:45 +00:00
refactor/polish ~ fix rustc
complaints (unused_parens)
This commit is contained in:
parent
ecc895e7a1
commit
5224c3cd49
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,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) * 100)
|
(now - boottime) * 100
|
||||||
}
|
}
|
||||||
_ => -1,
|
_ => -1,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue