mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-16 09:24:45 +12:00
Get the 64 bit value of physmem.
This commit is contained in:
parent
c98673f94b
commit
78279bdb30
|
@ -146,7 +146,7 @@ namespace Shared {
|
||||||
}
|
}
|
||||||
|
|
||||||
size = sizeof(totalMem);
|
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");
|
Logger::warning("Could not get memory size");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue