Fix memory metric on *NIX

This commit is contained in:
Patrick Stadler 2017-10-09 14:54:57 +02:00 committed by GitHub
parent 636feccd7c
commit be4039d647
1 changed files with 3 additions and 3 deletions

View File

@ -13,11 +13,11 @@ if is_osx; then
}
else
collect () {
report $(free | awk '/buffers\/cache/ {
printf "%.1f", 100 - $4 / ($3 + $4) * 100.0 }')
report $(free | awk '/Mem:/ {
printf "%.1f", 100 - $4 / ($3 + $4) * 100}')
}
fi
docs () {
echo "Percentage of used memory."
}
}