mirror of https://github.com/aristocratos/btop.git
Get the 64 bit value of physmem.
This commit is contained in:
parent
7cf048d591
commit
aea95dbafc
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue