always display minutes as 2 digits

This commit is contained in:
xenofem 2021-11-22 20:13:45 -05:00
parent 465fb2ba5d
commit 988a4aac4c

View file

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