commit files
This commit is contained in:
13
ythdd_globals.py
Normal file
13
ythdd_globals.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python3
|
||||
import time
|
||||
|
||||
global starttime, apiRequests, apiFailedRequests, outsideApiHits
|
||||
|
||||
#def init():
|
||||
# starttime = int(time.time())
|
||||
|
||||
#def notImplemented(data):
|
||||
# return 501, f"not recognised/implemented: {data[0]}", []
|
||||
|
||||
def getUptime():
|
||||
return int(time.time()) - starttime
|
||||
Reference in New Issue
Block a user