Merge pull request #9344 from MerryMage/HW_PHYSMEM64
MemoryUtil: Use HW_PHYSMEM64 sysctl in MemPhysical
This commit is contained in:
commit
7c81f0256c
|
@ -165,7 +165,7 @@ size_t MemPhysical()
|
|||
#elif defined __FreeBSD__
|
||||
mib[1] = HW_REALMEM;
|
||||
#elif defined __OpenBSD__ || defined __NetBSD__
|
||||
mib[1] = HW_PHYSMEM;
|
||||
mib[1] = HW_PHYSMEM64;
|
||||
#endif
|
||||
size_t length = sizeof(size_t);
|
||||
sysctl(mib, 2, &physical_memory, &length, NULL, 0);
|
||||
|
|
Loading…
Reference in New Issue