mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +01:00
asa
This commit is contained in:
@@ -58,11 +58,17 @@ def uptime():
|
||||
if days > 0:
|
||||
string += str(days) + " " + (days == 1 and "d" or "d" ) + ", "
|
||||
if len(string) > 0 or hours > 0:
|
||||
if hours < 10:
|
||||
hours = "0{}".format(hours)
|
||||
string += str(hours) + ":"
|
||||
if len(string) > 0 or minutes > 0:
|
||||
if minutes < 10:
|
||||
minutes = "0{}".format(minutes)
|
||||
string += str(minutes) + ":"
|
||||
string += str(seconds)
|
||||
|
||||
if seconds < 10:
|
||||
seconds = "0{}".format(seconds)
|
||||
string += str(seconds)
|
||||
return string;
|
||||
|
||||
def writeLog(msg, svr="INFO"):
|
||||
|
||||
Reference in New Issue
Block a user