This commit is contained in:
Michael Grote 2021-09-21 18:46:40 +02:00
parent 99ecaa1606
commit f6673063f6

View file

@ -265,8 +265,11 @@ function get_memory_value {
# suche jeweils den wert
# gesamt + frei = benutzt
mem_free=$(echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }')
echo FREEEEEEEEEEEE: $mem_free
mem_total=$(echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }')
echo TOTAAAAAAAAAAAAL: $mem_total
mem_used=$(awk '{ print("'"mem_total"'" - "'"mem_free"'") }')
echo USEEEEEEEEEEED: $mem_used
echo $line | awk '/total-memory:/{
print "used_memory.value " "'"$mem_used"'"
}'