From af580133c8bab3299b9568d2c206b9c3ac96f152 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 16 Feb 2022 22:42:39 -0600 Subject: [PATCH] Remove seconds from uptime --- rootfs/standard/var/www/mynode/device_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py index 80cf7fe3..251668d6 100644 --- a/rootfs/standard/var/www/mynode/device_info.py +++ b/rootfs/standard/var/www/mynode/device_info.py @@ -260,7 +260,7 @@ def is_device_from_reseller(): # Device Info #================================== def get_system_uptime(): - uptime = to_string(subprocess.check_output('awk \'{print int($1/86400)" days "int($1%86400/3600)" hour(s) "int(($1%3600)/60)" minute(s) "int($1%60)" seconds(s)"}\' /proc/uptime', shell=True)) + uptime = to_string(subprocess.check_output('awk \'{print int($1/86400)" days "int($1%86400/3600)" hour(s) "int(($1%3600)/60)" minute(s)"}\' /proc/uptime', shell=True)) uptime = uptime.strip() return uptime