fix: fallback to 0 response-time if target job did not finish
This commit is contained in:
parent
0b4e9bdab7
commit
461731cc5a
@ -141,7 +141,7 @@ where I: Default {
|
||||
Self{last_run: vec![], last_trace: vec![], last_reads: vec![], last_input: I::default(), worst_job_instances: HashMap::new(), select_task: select_task.clone(), name: Cow::from("systemstate".to_string()), last_states: HashMap::new(), success: false, job_instances: vec![]}
|
||||
}
|
||||
pub fn last_runtime(&self) -> u64 {
|
||||
self.select_task.as_ref().map(|x| self.worst_job_instances.get(x).unwrap_or(&unsafe{libafl_qemu::sys::icount_get_raw()}).clone()).unwrap_or(unsafe{libafl_qemu::sys::icount_get_raw()})
|
||||
self.select_task.as_ref().map(|x| self.worst_job_instances.get(x).unwrap_or(&0).clone()).unwrap_or(unsafe{libafl_qemu::sys::icount_get_raw()})
|
||||
}
|
||||
}
|
||||
impl<I> Default for QemuSystemStateObserver<I>
|
||||
|
Loading…
x
Reference in New Issue
Block a user