Fix for 23 minutes and 60 seconds rounding bug.

This commit is contained in:
daniel-123 2012-10-18 21:01:01 +02:00
parent 311a095e00
commit 2d771a60c2

View File

@ -446,6 +446,7 @@ class UiManager(object):
return self.__ui.promptFor(prompt)
def formatTime(self, value):
value = round(value)
weeks = value // 604800
days = (value % 604800) // 86400
hours = (value % 86400) // 3600