Get the 64 bit value of physmem.

This commit is contained in:
Santhosh Raju 2024-02-26 04:44:27 +01:00
parent c98673f94b
commit 78279bdb30
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ namespace Shared {
}
size = sizeof(totalMem);
if (sysctlbyname("hw.physmem", &totalMem, &size, nullptr, 0) < 0) {
if (sysctlbyname("hw.physmem64", &totalMem, &size, nullptr, 0) < 0) {
Logger::warning("Could not get memory size");
}