Fix count statistic

This commit is contained in:
augustin64 2024-06-20 16:54:02 +02:00
parent e1c5a2fa23
commit 80f559be3a
2 changed files with 3 additions and 4 deletions

View File

@ -300,7 +300,7 @@ fn calibrate_fixed_freq_2_thread_impl<I: Iterator<Item = (usize, usize)>, T>(
print!(",{}", hist);
}
*count += 1;
*count += *hist;
if *min == 0 {
// looking for min
if *hist > SPURIOUS_THRESHOLD {

View File

@ -246,7 +246,7 @@ pub struct CalibrateResult {
pub median: Vec<u64>,
pub min: Vec<u64>,
pub max: Vec<u64>,
pub count: Vec<isize>
pub count: Vec<u32>
}
pub struct CalibrateOperation<'a> {
@ -426,8 +426,7 @@ fn calibrate_impl_fixed_freq(
if verbosity_level >= RawResult {
print!(",{}", hist);
}
*count += 1;
*count += *hist;
if *min == 0 {
// looking for min
if *hist > SPURIOUS_THRESHOLD {