This commit is contained in:
Michael Grote 2021-09-21 21:19:29 +02:00
parent 77f6359621
commit 068ef07535

View file

@ -294,6 +294,8 @@ function get_memory_label {
done <<< "$data"
}
function get_memory_value {
get_mem_total
get_mem_free
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo multigraph memory_$name
fi
@ -311,7 +313,6 @@ function get_memory_value {
done <<< "$data"
# berechne used-memory
# gesamt + frei = benutzt
echo used_memory.value $(echo $mem_total-$mem_free| bc)
# prufe noch ob war gesetzt
}