From a2e845945702012dfd39bde5a6e12446e4424eaa Mon Sep 17 00:00:00 2001 From: "Pawel \"l0ner\" Soltys" Date: Sun, 11 Jan 2015 18:03:22 +0100 Subject: [PATCH] fixed uncorrect ram usage While (as per specification) size of total ram reported by sysctl should be 64 bits it's actually 32. --- bsd/memory_freebsd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsd/memory_freebsd.cc b/bsd/memory_freebsd.cc index e4991d6..9651fa6 100644 --- a/bsd/memory_freebsd.cc +++ b/bsd/memory_freebsd.cc @@ -25,9 +25,9 @@ #include "common.h" #include "memory.h" -std::string mem_string() { +std::string mem_string( bool use_colors = false ) { // These values are in bytes - int64_t total_mem = 0; + int32_t total_mem = 0; int64_t used_mem = 0; int64_t unused_mem = 0; int32_t inactive_mem = 0;