while typo

This commit is contained in:
Michael Grote 2021-09-21 18:54:24 +02:00
parent 30ce95e62b
commit 693ca713b9

View file

@ -280,9 +280,10 @@ function get_memory_value {
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"'"
}'
while read -r line; do
echo $line | awk '/total-memory:/{
print "used_memory.value " "'"$mem_used"'"
}'
done <<< "$data"
while read -r line; do
echo $line | awk '/total-memory:/{