MYMEM=$(printf "%.2f" $(( $(vmstat -s | head -n1 | awk '{print $1}') * 0.5 )) | numfmt --to=si --from-unit=K)
Created
November 12, 2015 19:25
-
-
Save xemoe/1013d956ce438a9300f9 to your computer and use it in GitHub Desktop.
Calculate system memory by half
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment