Add spaces in time string

This commit is contained in:
Itay Mizeretz 2017-11-21 17:39:42 +02:00
parent 133bd7d80a
commit 82e30040eb
1 changed files with 2 additions and 2 deletions

View File

@ -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