Updated memory calculation logic for MacOS

The available physical memory computation now includes the inactive_count along with the free_count.
meow-7.2.2
Beq 2024-07-16 01:19:02 +01:00
parent 2e7ed2a172
commit a447221d66
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ void LLMemory::updateMemoryInfo()
// <FS:Beq> align MemInfo across platforms
// sAvailPhysicalMemInKB = U32Bytes(vmstat.free_count * page_size);
// sMaxPhysicalMemInKB = LLMemoryInfo::getHardwareMemSize();
avail_phys = U32Bytes(vmstat.free_count * page_size);
avail_phys = U32Bytes( (vmstat.free_count + vmstat.inactive_count) * page_size);
sMaxHeapSizeInKB = LLMemoryInfo::getHardwareMemSize();
// </FS:Beq>
}