diff --git a/cache_utils/src/calibrate_2t.rs b/cache_utils/src/calibrate_2t.rs index cfe917c..f003cbc 100644 --- a/cache_utils/src/calibrate_2t.rs +++ b/cache_utils/src/calibrate_2t.rs @@ -300,7 +300,7 @@ fn calibrate_fixed_freq_2_thread_impl, T>( print!(",{}", hist); } - *count += 1; + *count += *hist; if *min == 0 { // looking for min if *hist > SPURIOUS_THRESHOLD { diff --git a/cache_utils/src/calibration.rs b/cache_utils/src/calibration.rs index b72646b..9405579 100644 --- a/cache_utils/src/calibration.rs +++ b/cache_utils/src/calibration.rs @@ -246,7 +246,7 @@ pub struct CalibrateResult { pub median: Vec, pub min: Vec, pub max: Vec, - pub count: Vec + pub count: Vec } 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 {