Fix count statistic
This commit is contained in:
parent
e1c5a2fa23
commit
80f559be3a
@ -300,7 +300,7 @@ fn calibrate_fixed_freq_2_thread_impl<I: Iterator<Item = (usize, usize)>, T>(
|
|||||||
print!(",{}", hist);
|
print!(",{}", hist);
|
||||||
}
|
}
|
||||||
|
|
||||||
*count += 1;
|
*count += *hist;
|
||||||
if *min == 0 {
|
if *min == 0 {
|
||||||
// looking for min
|
// looking for min
|
||||||
if *hist > SPURIOUS_THRESHOLD {
|
if *hist > SPURIOUS_THRESHOLD {
|
||||||
|
@ -246,7 +246,7 @@ pub struct CalibrateResult {
|
|||||||
pub median: Vec<u64>,
|
pub median: Vec<u64>,
|
||||||
pub min: Vec<u64>,
|
pub min: Vec<u64>,
|
||||||
pub max: Vec<u64>,
|
pub max: Vec<u64>,
|
||||||
pub count: Vec<isize>
|
pub count: Vec<u32>
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct CalibrateOperation<'a> {
|
pub struct CalibrateOperation<'a> {
|
||||||
@ -426,8 +426,7 @@ fn calibrate_impl_fixed_freq(
|
|||||||
if verbosity_level >= RawResult {
|
if verbosity_level >= RawResult {
|
||||||
print!(",{}", hist);
|
print!(",{}", hist);
|
||||||
}
|
}
|
||||||
|
*count += *hist;
|
||||||
*count += 1;
|
|
||||||
if *min == 0 {
|
if *min == 0 {
|
||||||
// looking for min
|
// looking for min
|
||||||
if *hist > SPURIOUS_THRESHOLD {
|
if *hist > SPURIOUS_THRESHOLD {
|
||||||
|
Loading…
Reference in New Issue
Block a user