diff --git a/libafl_qemu/src/clock.rs b/libafl_qemu/src/clock.rs index 3b12dce3dc..cab72171bd 100644 --- a/libafl_qemu/src/clock.rs +++ b/libafl_qemu/src/clock.rs @@ -145,7 +145,6 @@ impl Default for QemuClockObserver { //========== Feedback /// Nop feedback that annotates execution time in the new testcase, if any /// for this Feedback, the testcase is never interesting (use with an OR) -/// It decides, if the given [`ClockObserver`] value of a run is interesting. #[derive(Serialize, Deserialize, Clone, Debug)] pub struct ClockFeedback { exec_time: Option, @@ -179,7 +178,7 @@ where #[inline] fn append_metadata(&mut self, _state: &mut S, testcase: &mut Testcase) -> Result<(), Error> { *testcase.exec_time_mut() = match self.exec_time { - Some(s) => Some(Duration::new(0,360*s as u32)), + Some(s) => Some(Duration::from_nanos(s << 3)), //emulated time is << 3, real time more like * 360 None => None, }; self.exec_time = None;