ports/sysutils/munin-common/files/patch-plugins_node.d_multips__memory.in
Mathieu Arnold ed49e7eb1c Update to 2.0.54.
While there, document why patches are there.
2020-01-27 14:00:11 +00:00

13 lines
427 B
Text

awk works just fine here.
--- plugins/node.d/multips_memory.in.orig 2018-09-21 02:11:11 UTC
+++ plugins/node.d/multips_memory.in
@@ -137,7 +137,7 @@ fi
for name in $names; do
fieldname="$(clean_fieldname "$name")"
- ps -eo "$monitor,comm" | gawk '
+ ps -eo "$monitor,comm" | awk '
BEGIN { total = "U"; } # U = Unknown.
/grep/ { next; }
$2 ~ /^'"$name"'$/ { total = total + ($1*1024); }