Update src/uu/uptime/src/uptime.rs

Co-authored-by: Roy Ivy III <rivy.dev@gmail.com>
This commit is contained in:
Sylvestre Ledru 2020-05-21 10:58:23 +02:00 committed by GitHub
parent 340b5badda
commit 3994af5678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}