intermediat snapshots _at_xh
This commit is contained in:
parent
6d1d7482ee
commit
66e299cfce
@ -56,11 +56,11 @@ where
|
|||||||
where {
|
where {
|
||||||
match &self.dumpfile {
|
match &self.dumpfile {
|
||||||
Some(s) => {
|
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 {
|
if time_has_come {
|
||||||
self.last_dump = Some(Instant::now());
|
self.last_dump = Some(Instant::now());
|
||||||
// Try dumping the worst case
|
// 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 corpus = state.corpus();
|
||||||
let mut worst = Duration::new(0,0);
|
let mut worst = Duration::new(0,0);
|
||||||
let mut worst_input = None;
|
let mut worst_input = None;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user