This commit is contained in:
Michael Grote 2021-09-21 19:20:31 +02:00
parent 3e9b727f28
commit 19f2288c84

View file

@ -277,7 +277,9 @@ function get_memory_value {
echo USEEEEEEEEEEED: $mem_used
while read -r line; do
mem_total=$(echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }')
echo FREEEEEEEEEEEE111: $mem_free
mem_free=$(echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }')
echo TOTAAAAAAAAAAAAL111: $mem_total
done <<< "$data"
echo FREEEEEEEEEEEE: $mem_free
echo TOTAAAAAAAAAAAAL: $mem_total