mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-02-28 13:59:12 -05:00
Fix memory metric on *NIX
This commit is contained in:
parent
636feccd7c
commit
be4039d647
@ -13,8 +13,8 @@ if is_osx; then
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
collect () {
|
collect () {
|
||||||
report $(free | awk '/buffers\/cache/ {
|
report $(free | awk '/Mem:/ {
|
||||||
printf "%.1f", 100 - $4 / ($3 + $4) * 100.0 }')
|
printf "%.1f", 100 - $4 / ($3 + $4) * 100}')
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user