mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-25 22:18:07 +00:00
Remove seconds from uptime
This commit is contained in:
parent
ec1c4122eb
commit
af580133c8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user