From 3994af5678facdd2e0099792250bc76ca2f63adb Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 21 May 2020 10:58:23 +0200 Subject: [PATCH] Update src/uu/uptime/src/uptime.rs Co-authored-by: Roy Ivy III --- src/uu/uptime/src/uptime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/uptime/src/uptime.rs b/src/uu/uptime/src/uptime.rs index a7ff10810..53133dc79 100644 --- a/src/uu/uptime/src/uptime.rs +++ b/src/uu/uptime/src/uptime.rs @@ -170,7 +170,7 @@ fn get_uptime(boot_time: Option) -> i64 { Some(t) => { let now = time::get_time().sec; let boottime = t as i64; - (now - boottime) + now - boottime } _ => -1, }