|
@@ -170,10 +170,10 @@ impl Cache {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- pub fn fullness_permill(&self) -> usize{
|
|
|
|
|
|
+ pub fn fullness_permill(&self) -> usize {
|
|
let mut permill = 0;
|
|
let mut permill = 0;
|
|
for i in 0..25 {
|
|
for i in 0..25 {
|
|
- permill += 10 * self.table[i].hashes.iter().filter(|h| **h == 0).count();
|
|
|
|
|
|
+ permill += 10 * self.table[i].hashes.iter().filter(|h| **h != 0).count();
|
|
}
|
|
}
|
|
permill
|
|
permill
|
|
}
|
|
}
|