From 63c88a6b62b6970560fd152c81f2ffd936e3132b Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 21 Sep 2021 19:26:53 +0200 Subject: [PATCH] ) --- mikrotik/mt_system | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mikrotik/mt_system b/mikrotik/mt_system index 9f8d4b6..84cb1ea 100644 --- a/mikrotik/mt_system +++ b/mikrotik/mt_system @@ -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 }') + echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }' done <<< "$data") mem_free=$( 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") echo FREEEEEEEEEEEE: $mem_free echo TOTAAAAAAAAAAAAL: $mem_total