home · contact · privacy
Fix duration formatting.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 18 Feb 2025 14:36:50 +0000 (15:36 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 18 Feb 2025 14:36:50 +0000 (15:36 +0100)
src/ytplom/misc.py

index 82fb7c584304740e3ab73dc057d6cb437a9e0c9e..768227c0f5d70ae0af4d85b81c95efd920bd63ac 100644 (file)
@@ -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)])