intermediat snapshots _at_xh

This commit is contained in:
Alwin Berger 2025-02-21 10:13:47 +01:00
parent 6d1d7482ee
commit 66e299cfce

View File

@ -56,11 +56,11 @@ where
where {
match &self.dumpfile {
Some(s) => {
let time_has_come = self.last_dump.map(|t| Instant::now()-t > Duration::from_secs(1200)).unwrap_or(true);
let time_has_come = self.last_dump.map(|t| Instant::now()-t > Duration::from_secs(600)).unwrap_or(true);
if time_has_come {
self.last_dump = Some(Instant::now());
// Try dumping the worst case
let casename = s.with_extension(format!("at_{}h.case", (Instant::now()-self.init_time).as_secs()/3600));
let casename = s.with_file_name(&(s.file_stem().unwrap().to_str().unwrap().to_owned()+&format!("_at_{}h", (Instant::now()-self.init_time).as_secs()/3600))).with_extension("case");
let corpus = state.corpus();
let mut worst = Duration::new(0,0);
let mut worst_input = None;