This commit is contained in:
Michael Grote 2021-09-22 09:30:31 +02:00
parent edb8d6fc65
commit f744025a98

View file

@ -291,10 +291,8 @@ function get_memory_label {
print "free_memory.label free memory";
print "graph_info Total, Used & free RAM.",
gsub(/MiB/,"",$2);
$varcrit=$2*0.9;
$varwarn=$2*0.7;
print "used_memory.critical " $varcrit;
print "used_memory.warning " $varwarn }'
print "used_memory.critical " $2*0.9;
print "used_memory.warning " $2*0.7 }'
done <<< "$data"
}
function get_memory_value {