From a4afe5313523fbc726415e2025b409193840709c Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 21 Oct 2021 00:20:15 +0800 Subject: Fix bug within human_timedelta --- jimbrella/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jimbrella') diff --git a/jimbrella/utils.py b/jimbrella/utils.py index c7e8176..1535d76 100644 --- a/jimbrella/utils.py +++ b/jimbrella/utils.py @@ -14,5 +14,5 @@ def human_timedelta(delta: timedelta) -> str: days = f"{delta.days} days, " hours = delta.seconds // 3600 - minutes = delta.seconds % (hours * 3600) // 60 + minutes = (delta.seconds - (hours * 3600)) // 60 return days + f"{hours:0>2}:{minutes:0>2}" # zero-pad to two digits -- cgit v1.2.3