fix: format_time rollover, move sys.path to conftest
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,8 +9,8 @@ def build_export_path(folder: str, basename: str, counter: int) -> str:
|
||||
|
||||
|
||||
def format_time(seconds: float) -> str:
|
||||
m = int(seconds) // 60
|
||||
s = seconds - m * 60
|
||||
m = int(seconds // 60)
|
||||
s = int(seconds % 60 * 10) / 10 # floor-truncate to 1dp, prevents "X:60.0" rollover
|
||||
return f"{m}:{s:04.1f}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user