Skip to content
Permalink
Browse files
Merge pull request #9344 from MerryMage/HW_PHYSMEM64
MemoryUtil: Use HW_PHYSMEM64 sysctl in MemPhysical
  • Loading branch information
lioncash committed Dec 20, 2020
2 parents c582fb0 + 29fceeb commit 7c81f02
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 7c81f02

Please sign in to comment.