mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +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:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user