Skip to content

Commit

Permalink
Fix divide-by-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Oct 3, 2023
1 parent d7c1403 commit 473c9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/scripts/summarize_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def calculate_optimization_stats(stats):
("Optimization attempts", attempts, ""),
("Traces created", created, format_ratio(created, attempts)),
("Traces executed", executed, ""),
("Uops executed", uops, int(uops / executed)),
("Uops executed", uops, int(uops / (executed or 1)),
("Trace stack overflow", trace_stack_overflow, ""),
("Trace stack underflow", trace_stack_underflow, ""),
("Trace too long", trace_too_long, ""),
Expand Down

0 comments on commit 473c9c8

Please sign in to comment.