Skip to content

Commit 519299d

Browse files
authored
Use Float16 for % (#410)
Fixes #406
1 parent 8052ebb commit 519299d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/SCPrettyTablesExt.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ function SnoopCompile.report_invalidations(io::IO = stdout;
2929
trunc_msg = truncated_invs ? " (showing $nr functions) " : ""
3030
@info "$n_total_invalidations methods invalidated for $n_invs_total functions$trunc_msg"
3131
n_invalidations_percent = map(invs_per_method) do inv
32-
inv_perc = inv / sum_invs
33-
Int(round(inv_perc*100, digits = 0))
32+
Float16(100 * inv / sum_invs)
3433
end
3534
meth_name = map(trees) do inv
3635
"$(inv.method.name)"

0 commit comments

Comments
 (0)