Skip to content

Commit 93ad8d4

Browse files
committed
Fix genElapsedTime.py
"Elapsed time: 0:02.08[h:]min:sec" is 2s not 2m8s Signed-off-by: Matt Liberty <[email protected]>
1 parent 980c883 commit 93ad8d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/util/genElapsedTime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
timePor = line.strip().replace('Elapsed time: ', '')
3535
# Remove the units from the time portion
3636
timePor = timePor.split('[h:]', 1)[0]
37-
# Ensure that hours, min and seconds are separated by ':' not '.'
38-
timePor = timePor.replace('.',':')
37+
# Remove any fraction of a second
38+
timePor = timePor.split('.', 1)[0]
3939
# Calculate elapsed time that has this format 'h:m:s'
4040
timeList = timePor.split(':')
4141
if len(timeList) == 2:

0 commit comments

Comments
 (0)