)
This commit is contained in:
parent
f68e1673b7
commit
63c88a6b62
1 changed files with 2 additions and 2 deletions
|
@ -276,11 +276,11 @@ function get_memory_value {
|
||||||
# gesamt + frei = benutzt
|
# gesamt + frei = benutzt
|
||||||
mem_total=$(
|
mem_total=$(
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }')
|
echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }'
|
||||||
done <<< "$data")
|
done <<< "$data")
|
||||||
mem_free=$(
|
mem_free=$(
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }')
|
echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }'
|
||||||
done <<< "$data")
|
done <<< "$data")
|
||||||
echo FREEEEEEEEEEEE: $mem_free
|
echo FREEEEEEEEEEEE: $mem_free
|
||||||
echo TOTAAAAAAAAAAAAL: $mem_total
|
echo TOTAAAAAAAAAAAAL: $mem_total
|
||||||
|
|
Loading…
Reference in a new issue