fix api regression

This commit is contained in:
Alwin Berger 2023-09-18 16:48:57 +02:00
parent 82908badfd
commit bf42de5698

View File

@ -87,7 +87,7 @@ where
{
fn compute( state: &S, entry: &mut Testcase<S::Input>) -> Result<f64, Error> {
let execs_per_hour = (3600.0/entry.exec_time().expect("testcase.exec_time is needed for scheduler").as_secs_f64());
let execs_times_length_per_hour = execs_per_hour*entry.cached_len().unwrap() as f64;
let execs_times_length_per_hour = execs_per_hour*entry.load_len(state.corpus()).unwrap() as f64;
Ok(execs_times_length_per_hour)
}
}