uptime is not time delta guy
This commit is contained in:
parent
7724e991b7
commit
95ced1a318
4
main.py
4
main.py
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue