Skip to content

Commit b47ea34

Browse files
committed
ZJIT: Fix a flipped stat
I'm sorry. Another follow-up on ruby#14378
1 parent c2d99d0 commit b47ea34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ pub extern "C" fn rb_zjit_stats(_ec: EcPtr, _self: VALUE, target_key: VALUE) ->
224224
let total_insn_count = vm_insn_count + counters.zjit_insn_count;
225225
set_stat_usize!(hash, "total_insn_count", total_insn_count);
226226

227-
set_stat_f64!(hash, "ratio_in_zjit", 100.0 * vm_insn_count as f64 / total_insn_count as f64);
227+
set_stat_f64!(hash, "ratio_in_zjit", 100.0 * counters.zjit_insn_count as f64 / total_insn_count as f64);
228228
}
229229

230230
hash

0 commit comments

Comments
 (0)