debug
This commit is contained in:
parent
99ecaa1606
commit
f6673063f6
1 changed files with 3 additions and 0 deletions
|
@ -265,8 +265,11 @@ function get_memory_value {
|
|||
# suche jeweils den wert
|
||||
# gesamt + frei = benutzt
|
||||
mem_free=$(echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }')
|
||||
echo FREEEEEEEEEEEE: $mem_free
|
||||
mem_total=$(echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }')
|
||||
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"'"
|
||||
}'
|
||||
|
|
Loading…
Reference in a new issue