This commit is contained in:
Michael Grote 2021-09-21 20:01:41 +02:00
parent ddeb7595de
commit 616747f641

View file

@ -276,11 +276,11 @@ function get_memory_value {
# gesamt + frei = benutzt
mem_total=$(
while read -r line; do
echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }' | tr -dc '[0-9]'
echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }' | tr -dc '[0-9.]'
done <<< "$data")
mem_free=$(
while read -r line; do
echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }' | tr -dc '[0-9]'
echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }' | tr -dc '[0-9.]'
done <<< "$data")
echo FREEEEEEEEEEEE: $mem_free
echo TOTAAAAAAAAAAAAL: $mem_total