This commit is contained in:
Michael Grote 2021-09-21 19:54:16 +02:00
parent 63c88a6b62
commit 8415073b7f

View file

@ -284,7 +284,7 @@ function get_memory_value {
done <<< "$data")
echo FREEEEEEEEEEEE: $mem_free
echo TOTAAAAAAAAAAAAL: $mem_total
mem_used=$(awk '{ print("'"$mem_total"'" - "'"$mem_free"'") }')
mem_used=$(awk -v total="$mem_total" -v free="$mem_free" '{ print(total - free)}')
echo used_memory.value $mem_used
# prufe noch ob war gesetzt
}