Fix add assign implemntation bug

This commit is contained in:
Guillume DIDIER 2021-01-05 11:43:20 +01:00
parent d90d572bc9
commit 4a04fcaac6
2 changed files with 6 additions and 4 deletions

View File

@ -1050,8 +1050,8 @@ impl AddAssign<&RawHistogram> for RawHistogram {
assert_eq!(self.hit.len(), self.miss.len());
for i in 0..self.hit.len() {
self.hit[i] + rhs.hit[i];
self.miss[i] + rhs.miss[i];
self.hit[i] += rhs.hit[i];
self.miss[i] += rhs.miss[i];
}
}
}

View File

@ -4,7 +4,6 @@
//fn execute_on_core(FnOnce)
use cache_utils::calibration::calibrate_flush;
use cache_utils::calibration::Verbosity;
@ -41,7 +40,10 @@ pub fn main() {
// Let's grab all the list of CPUS
// Then iterate the calibration on each CPU core.
eprintln!("CPU MicroArch: {:?}", MicroArchitecture::get_micro_architecture());
eprintln!(
"CPU MicroArch: {:?}",
MicroArchitecture::get_micro_architecture()
);
eprint!("Warming up...");
for i in 0..(CpuSet::count() - 1) {
if old.is_set(i).unwrap() {