Fix human readable time formatting
This commit is contained in:
parent
8aa6d50bb8
commit
2544b9a164
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user