Skip to content

Commit

Permalink
Get the 64 bit value of physmem.
Browse files Browse the repository at this point in the history
  • Loading branch information
fraggerfox committed Feb 26, 2024
1 parent 4c5a865 commit 7f98e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netbsd/btop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 7f98e38

Please sign in to comment.