Fix self.restart_helper.execs_since_progress_start in calibration stage (#1943)

* fix

* fix
This commit is contained in:
Dongjia "toka" Zhang 2024-03-15 18:31:44 +01:00 committed by GitHub
parent ee6385c25b
commit 5cc0180835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,6 +121,8 @@ where
}
let mut iter = self.stage_max;
// If we restarted after a timeout or crash, do less iterations.
iter -= usize::try_from(self.restart_helper.execs_since_progress_start(state)?)?;
let input = state.current_input_cloned()?;
@ -159,9 +161,6 @@ where
let mut i = 1;
let mut has_errors = false;
// If we restarted after a timeout or crash, do less iterations.
iter -= usize::try_from(self.restart_helper.execs_since_progress_start(state)?)?;
while i < iter {
let input = state.current_input_cloned()?;