Fix human readable time formatting

This commit is contained in:
Michal Krenek (Mikos) 2017-04-12 17:49:26 +02:00
parent 8aa6d50bb8
commit 2544b9a164

View File

@ -44,7 +44,7 @@ def human_time(seconds):
h, m = divmod(m, 60)
if h > 0:
timestr = '{:.0f} h {.0f} min {.0f} s'.format(h, m, s)
timestr = '{:.0f} h {:.0f} min {:.0f} s'.format(h, m, s)
elif m > 0:
timestr = '{:.0f} min {:.0f} s'.format(m, s)
else: