Fix infinite calibration (#1147)

* Fix infinite calibration

* fmt

* fix

* fix
This commit is contained in:
Dongjia "toka" Zhang 2023-03-15 22:19:23 +09:00 committed by GitHub
parent 6c98945fc3
commit 51bc1d0328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ where
let mut unstable_entries: Vec<usize> = vec![]; let mut unstable_entries: Vec<usize> = vec![];
let map_len: usize = map_first.len(); let map_len: usize = map_first.len();
// Run CAL_STAGE_START - 1 times, increase by 2 for every time a new // Run CAL_STAGE_START - 1 times, increase by 2 for every time a new
// run is found to be unstable, with CAL_STAGE_MAX total runs. // run is found to be unstable or to crash with CAL_STAGE_MAX total runs.
let mut i = 1; let mut i = 1;
let mut has_errors = false; let mut has_errors = false;
@ -178,11 +178,11 @@ where
)?; )?;
has_errors = true; has_errors = true;
if iter < CAL_STAGE_MAX {
iter += 2;
};
} }
continue;
if iter < CAL_STAGE_MAX {
iter += 2;
};
}; };
total_time += current_time() - start; total_time += current_time() - start;