diff options
author | Frederick Yin <fkfd@fkfd.me> | 2021-10-21 00:20:15 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2021-10-21 00:20:15 +0800 |
commit | a4afe5313523fbc726415e2025b409193840709c (patch) | |
tree | add35195aa22af13095c2342dea62a6293df4518 /jimbrella | |
parent | f53b65c14a92562309ced75a24371b577f9d8ef1 (diff) |
Fix bug within human_timedelta
Diffstat (limited to 'jimbrella')
-rw-r--r-- | jimbrella/utils.py | 2 |
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 |