uptime is not time delta guy

This commit is contained in:
Yann Verry 2021-12-25 23:35:19 +01:00
parent 7724e991b7
commit 95ced1a318
Signed by: yann
GPG key ID: EB9E679A66B8C7A1

View file

@ -101,11 +101,9 @@ def uptime_extractor(uptime):
second = int(second) second = int(second)
except: except:
second = 0 second = 0
# current timestamp
ts = round(time.time())
# remove all value extracted # remove all value extracted
uptime = ts - 3600 * hour - minute * 60 - second uptime = 3600 * hour - minute * 60 - second
return uptime return uptime