mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
13 lines
427 B
Text
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); }
|