summaryrefslogtreecommitdiff
path: root/jimbrella/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella/utils.py')
-rw-r--r--jimbrella/utils.py2
1 files changed, 1 insertions, 1 deletions
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