From 78279bdb308e250a87ea9dac3db39e92f133c225 Mon Sep 17 00:00:00 2001 From: Santhosh Raju Date: Mon, 26 Feb 2024 04:44:27 +0100 Subject: [PATCH] Get the 64 bit value of physmem. --- src/netbsd/btop_collect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netbsd/btop_collect.cpp b/src/netbsd/btop_collect.cpp index c18abe2..3d426ab 100644 --- a/src/netbsd/btop_collect.cpp +++ b/src/netbsd/btop_collect.cpp @@ -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"); }