uptime is not time delta guy
This commit is contained in:
parent
7724e991b7
commit
95ced1a318
1 changed files with 1 additions and 3 deletions
4
main.py
4
main.py
|
@ -101,11 +101,9 @@ def uptime_extractor(uptime):
|
|||
second = int(second)
|
||||
except:
|
||||
second = 0
|
||||
# current timestamp
|
||||
ts = round(time.time())
|
||||
|
||||
# remove all value extracted
|
||||
uptime = ts - 3600 * hour - minute * 60 - second
|
||||
uptime = 3600 * hour - minute * 60 - second
|
||||
|
||||
return uptime
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue