Add spaces in time string
This commit is contained in:
parent
133bd7d80a
commit
82e30040eb
|
@ -25,7 +25,7 @@ class ReportService:
|
||||||
delta = ReportService.get_last_monkey_dead_time() - ReportService.get_first_monkey_time()
|
delta = ReportService.get_last_monkey_dead_time() - ReportService.get_first_monkey_time()
|
||||||
st = ""
|
st = ""
|
||||||
if delta.days > 0:
|
if delta.days > 0:
|
||||||
st += "%d days," % delta.days
|
st += "%d days, " % delta.days
|
||||||
total = delta.seconds
|
total = delta.seconds
|
||||||
seconds = total % 60
|
seconds = total % 60
|
||||||
total = (total - seconds) / 60
|
total = (total - seconds) / 60
|
||||||
|
@ -33,7 +33,7 @@ class ReportService:
|
||||||
total = (total - minutes) / 60
|
total = (total - minutes) / 60
|
||||||
hours = total
|
hours = total
|
||||||
if hours > 0:
|
if hours > 0:
|
||||||
st += "%d hours," % hours
|
st += "%d hours, " % hours
|
||||||
|
|
||||||
st += "%d minutes and %d seconds" % (minutes, seconds)
|
st += "%d minutes and %d seconds" % (minutes, seconds)
|
||||||
return st
|
return st
|
||||||
|
|
Loading…
Reference in New Issue