fix weighting from hits (#1120)

This commit is contained in:
van Hauser 2023-03-02 14:05:34 +01:00 committed by GitHub
parent 672f4d1668
commit 2a3f1d68f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,7 +333,7 @@ where
| PowerSchedule::QUAD => { | PowerSchedule::QUAD => {
let hits = psmeta.n_fuzz()[tcmeta.n_fuzz_entry()]; let hits = psmeta.n_fuzz()[tcmeta.n_fuzz_entry()];
if hits > 0 { if hits > 0 {
weight *= libm::log10(f64::from(hits)) + 1.0; weight /= libm::log10(f64::from(hits)) + 1.0;
} }
} }
// EXPLORE and EXPLOIT fall into this // EXPLORE and EXPLOIT fall into this