Fix uptime formatting

This commit is contained in:
Joscha 2016-05-24 13:38:06 +02:00
parent 948237f9d3
commit 086f2be721

View file

@ -214,11 +214,11 @@ class Bot():
uptime = ""
if delta >= 24*60*60:
uptime +="{}d ".format(delta//24*60*60)
uptime +="{}d ".format(delta//(24*60*60))
delta %= 24*60*60
if delta >= 60*60:
uptime += "{}h ".format(delta//60*60)
uptime += "{}h ".format(delta//(60*60))
delta %= 60*60
if delta >= 60: