1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Percentages should be out of 100.0%, not 1.0%.

This commit is contained in:
Noah Gibbs 2021-06-30 09:41:19 +01:00 committed by Alan Wu
parent db02d73e5e
commit e2fe7e4aff

View file

@ -190,7 +190,7 @@ module YJIT
total_exits = total_exit_count(stats)
top_n_total = exits.map { |name, count| count }.sum
top_n_exit_pct = top_n_total / total_exits
top_n_exit_pct = 100.0 * top_n_total / total_exits
$stderr.puts "Top-#{how_many} most frequent exit ops (#{"%.1f" % top_n_exit_pct}% of exits):"