diff --git a/plugins/router/mikrotik_system b/plugins/router/mikrotik_system index 0346ebcf..67805a34 100755 --- a/plugins/router/mikrotik_system +++ b/plugins/router/mikrotik_system @@ -345,13 +345,13 @@ function get_memory_value { while read -r line; do echo "$line" | awk '/total-memory:/{ gsub(/MiB/,"",$2); - printf "total_memory.value %d\n", $2 + printf "total_memory.value %.0f\n", $2 }' done <<< "$data" while read -r line; do echo "$line" | awk '/free-memory:/{ gsub(/MiB/,"",$2); - printf "free_memory.value %d\n", $2 + printf "free_memory.value %.0f\n", $2 }' done <<< "$data" # berechne used-memory