Fix add assign implemntation bug
This commit is contained in:
parent
d90d572bc9
commit
4a04fcaac6
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user