From 65b89dc1b4bbc114d8919d0eaf5aa0067bfb3e80 Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Fri, 27 Apr 2012 16:00:56 +0000
Subject: [PATCH] From Gerri: on MacOS X correctly return the physical memory
 in GetSysInfo().

git-svn-id: http://root.cern.ch/svn/root/trunk@43991 27541ba8-7e3a-0410-8455-c3a389f83636
---
 core/unix/src/TUnixSystem.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/unix/src/TUnixSystem.cxx b/core/unix/src/TUnixSystem.cxx
index fe7829894ea..0a410425ca6 100644
--- a/core/unix/src/TUnixSystem.cxx
+++ b/core/unix/src/TUnixSystem.cxx
@@ -4930,7 +4930,7 @@ static void GetDarwinSysInfo(SysInfo_t *sysinfo)
    // Get system info for Mac OS X.
 
    FILE *p = gSystem->OpenPipe("sysctl -n kern.ostype hw.model hw.ncpu hw.cpufrequency "
-                               "hw.busfrequency hw.l2cachesize hw.physmem", "r");
+                               "hw.busfrequency hw.l2cachesize hw.memsize", "r");
    TString s;
    s.Gets(p);
    sysinfo->fOS = s;
-- 
GitLab