Skip to content

Commit eb2be3a

Browse files
authored
Merge pull request The-OpenROAD-Project#3305 from The-OpenROAD-Project-staging/err-check-gen-elapsed
Check for None in computing totalElapsed and total_max_memory
2 parents 186c7c9 + 854f402 commit eb2be3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flow/util/genElapsedTime.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ def print_log_dir_times(logdir, args):
105105
odb_hash[0:20],
106106
)
107107
)
108-
totalElapsed += elapsedTime
109-
total_max_memory = max(total_max_memory, int(peak_memory))
108+
if elapsedTime is not None:
109+
totalElapsed += elapsedTime
110+
if peak_memory is not None:
111+
total_max_memory = max(total_max_memory, int(peak_memory))
110112

111113
if totalElapsed != 0 and not args.match:
112114
print(format_str % ("Total", totalElapsed, total_max_memory, ""))

0 commit comments

Comments
 (0)