home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c38857
)
Fix duration formatting.
master
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 18 Feb 2025 14:36:50 +0000
(15:36 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 18 Feb 2025 14:36:50 +0000
(15:36 +0100)
src/ytplom/misc.py
patch
|
blob
|
history
diff --git
a/src/ytplom/misc.py
b/src/ytplom/misc.py
index 82fb7c584304740e3ab73dc057d6cb437a9e0c9e..768227c0f5d70ae0af4d85b81c95efd920bd63ac 100644
(file)
--- a/
src/ytplom/misc.py
+++ b/
src/ytplom/misc.py
@@
-90,7
+90,7
@@
def ensure_expected_dirs(expected_dirs: list[Path]) -> None:
def _readable_seconds(seconds: int) -> str:
"""Represent seconds in (up-to-hours) hexagesimal division."""
seconds_str = str(seconds % 60)
- minutes_str = str(
seconds //
60)
+ minutes_str = str(
(seconds // 60) %
60)
hours_str = str(seconds // (60 * 60))
return ':'.join([f'0{s}' if len(s) == 1 else s
for s in (hours_str, minutes_str, seconds_str)])