negative duration avoidance
This commit is contained in:
@@ -480,6 +480,9 @@ def totaltime_sec_to_string(totaltime, shorten=False):
|
|||||||
if np.isnan(totaltime):
|
if np.isnan(totaltime):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
if totaltime < 0:
|
||||||
|
totaltime = -totaltime
|
||||||
|
|
||||||
fmt = '{H:02}:{M:02}:{S:02}.{t}'
|
fmt = '{H:02}:{M:02}:{S:02}.{t}'
|
||||||
if shorten:
|
if shorten:
|
||||||
fmt = '{H}:{M:02}:{S:02}'
|
fmt = '{H}:{M:02}:{S:02}'
|
||||||
|
|||||||
Reference in New Issue
Block a user