diff options
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index ffe635a..783b175 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -1455,7 +1455,7 @@ function set_sysctl($values) { function get_memory() { $real = trim(`sysctl -n hw.physmem`, " \n"); - $avail = trim(`sysctl hw.realmem`, " \n"); + $avail = trim(`sysctl -n hw.realmem`, " \n"); /* convert from bytes to megabytes */ return array(($real/1048576),($avail/1048576)); } |