Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
2 changes: 1 addition & 1 deletion Source/Core/Common/MemoryUtil.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 7c81f02

Please sign in to comment.