always display minutes as 2 digits
This commit is contained in:
parent
465fb2ba5d
commit
988a4aac4c
|
@ -41,7 +41,7 @@ def display_timedelta(d):
|
||||||
if d.days != 0:
|
if d.days != 0:
|
||||||
result += '{}d'.format(d.days)
|
result += '{}d'.format(d.days)
|
||||||
result += '{}h'.format(d.seconds // 3600)
|
result += '{}h'.format(d.seconds // 3600)
|
||||||
result += '{}m'.format((d.seconds % 3600) // 60)
|
result += '{:02}m'.format((d.seconds % 3600) // 60)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
if args.path:
|
if args.path:
|
||||||
|
|
Loading…
Reference in a new issue