Skip to content

Commit

Permalink
stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka committed Jun 19, 2024
1 parent 223f74b commit f7c141a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libafl/src/fuzzer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::{
use crate::{monitors::PerfFeature, state::HasClientPerfMonitor};

/// Send a monitor update all 15 (or more) seconds
const STATS_TIMEOUT_DEFAULT: Duration = Duration::from_secs(1);
const STATS_TIMEOUT_DEFAULT: Duration = Duration::from_secs(15);

/// Holds a scheduler
pub trait HasScheduler: UsesState
Expand Down Expand Up @@ -214,7 +214,7 @@ where
) -> Result<(), Error> {
let monitor_timeout = STATS_TIMEOUT_DEFAULT;
loop {
// log::info!("Starting another fuzz_loop");
log::info!("Starting another fuzz_loop");
manager.maybe_report_progress(state, monitor_timeout)?;
self.fuzz_one(stages, executor, state, manager)?;
}
Expand Down Expand Up @@ -247,7 +247,6 @@ where
let monitor_timeout = STATS_TIMEOUT_DEFAULT;

for _ in 0..iters {
// log::info!("Starting another fuzz_loop");
manager.maybe_report_progress(state, monitor_timeout)?;
ret = Some(self.fuzz_one(stages, executor, state, manager)?);
}
Expand Down

0 comments on commit f7c141a

Please sign in to comment.