[Zion] Fix kernel heap distribution calculation.

This commit is contained in:
Drew Galbraith 2023-11-15 12:14:58 -08:00
parent d71d543b2a
commit 4657c46f73
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ void KernelHeap::DumpDistribution() {
}
void KernelHeap::RecordSize(uint64_t size) {
size >>= 3;
size -= 1;
size >>= 2;
uint64_t index = 0;
while (size && index < 11) {
size >>= 1;