Mac OS X: getmemory fix.
This commit is contained in:
parent
94cac0676f
commit
4fc82847db
2
fetch.sh
2
fetch.sh
|
@ -407,7 +407,7 @@ getmemory () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
memtotal=$(printf "$(sysctl -n hw.memsize)"/1024^2 | bc)
|
memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc)
|
||||||
memwired=$(vm_stat | awk '/wired/ { print $4 }')
|
memwired=$(vm_stat | awk '/wired/ { print $4 }')
|
||||||
memactive=$(vm_stat | awk '/active / { print $3 }')
|
memactive=$(vm_stat | awk '/active / { print $3 }')
|
||||||
memcompressed=$(vm_stat | awk '/occupied/ { print $5 }')
|
memcompressed=$(vm_stat | awk '/occupied/ { print $5 }')
|
||||||
|
|
Reference in New Issue