Skip to content

Commit aa69c0f

Browse files
committed
Fix divide-by-zero
1 parent d7c1403 commit aa69c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/scripts/summarize_stats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ def calculate_optimization_stats(stats):
767767
("Optimization attempts", attempts, ""),
768768
("Traces created", created, format_ratio(created, attempts)),
769769
("Traces executed", executed, ""),
770-
("Uops executed", uops, int(uops / executed)),
770+
("Uops executed", uops, int(uops / (executed or 1))),
771771
("Trace stack overflow", trace_stack_overflow, ""),
772772
("Trace stack underflow", trace_stack_underflow, ""),
773773
("Trace too long", trace_too_long, ""),

0 commit comments

Comments
 (0)