mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove "divide by zero" workaround
It is now useless because of the condition at the beginning. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
7f367e6019
commit
b41b590457
1 changed files with 2 additions and 2 deletions
|
@ -104,14 +104,14 @@ void dbg_print_hit_rate() {
|
|||
|
||||
if (dbg_hit_cnt0)
|
||||
cout << "Total " << dbg_hit_cnt0 << " Hit " << dbg_hit_cnt1
|
||||
<< " hit rate (%) " << 100 * dbg_hit_cnt1 / (dbg_hit_cnt0 + 1) << endl;
|
||||
<< " hit rate (%) " << 100 * dbg_hit_cnt1 / dbg_hit_cnt0 << endl;
|
||||
}
|
||||
|
||||
void dbg_print_mean() {
|
||||
|
||||
if (dbg_mean_cnt0)
|
||||
cout << "Total " << dbg_mean_cnt0 << " Mean "
|
||||
<< (float)dbg_mean_cnt1 / (dbg_mean_cnt0 + 1) << endl;
|
||||
<< (float)dbg_mean_cnt1 / dbg_mean_cnt0 << endl;
|
||||
}
|
||||
|
||||
void dbg_mean_of(int v) {
|
||||
|
|
Loading…
Add table
Reference in a new issue