Geektool-Scripts
Geektool-Scripts copied to clipboard
The CPU calculation returns the wrong number when the free memory on the machine is over 1000M
In memScale.sh the line
top -l 1 | awk '/Phys/{gsub(/[a-zA-Z]/,""); printf "%.0f", ($10/($8+$10))*100}'
Returns
PhysMem: 2410M wired, 2986M active, 190M inactive, 5586M used, 11G free.
And the script parses that 11G free incorrectly resulting in this scale
100% __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ mem