Private
Public Access
1
0

negative duration avoidance

This commit is contained in:
2024-08-21 17:41:49 +02:00
parent e4b4ec02ba
commit 2d21b7c602

View File

@@ -480,6 +480,9 @@ def totaltime_sec_to_string(totaltime, shorten=False):
if np.isnan(totaltime):
return ''
if totaltime < 0:
totaltime = -totaltime
fmt = '{H:02}:{M:02}:{S:02}.{t}'
if shorten:
fmt = '{H}:{M:02}:{S:02}'