From 988a4aac4c00ae0f7512ccb0697a520bb1ec9fc9 Mon Sep 17 00:00:00 2001 From: xenofem Date: Mon, 22 Nov 2021 20:13:45 -0500 Subject: [PATCH] always display minutes as 2 digits --- impatient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impatient b/impatient index c5f3bf6..20ac413 100755 --- a/impatient +++ b/impatient @@ -41,7 +41,7 @@ def display_timedelta(d): if d.days != 0: result += '{}d'.format(d.days) result += '{}h'.format(d.seconds // 3600) - result += '{}m'.format((d.seconds % 3600) // 60) + result += '{:02}m'.format((d.seconds % 3600) // 60) return result if args.path: