Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Version 2.0' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Version 2.0
Authored by: wallybear on Apr 12, '12 03:06:25AM

VS=`vm_stat | awk '/Pages\ inactive\:/ {print $3}' | sed 's/\.//g'`
MM=`echo "$VS/255" | bc`

Why not use this:

MM=`vm_stat | awk '/Pages\ inactive\:/ {print int($3/256)}'

Same result, less calls.



[ Reply to This | # ]