mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correct field value to check
This commit is contained in:
parent
9845331715
commit
33bf93fb91
@ -3269,7 +3269,7 @@ function enable_rrd_graphing() {
|
||||
$rrdupdatesh .= "`$top -d 2 -s 1 0 | $awk '{gsub(/%/, \"\")} BEGIN { \\\n";
|
||||
$rrdupdatesh .= "printf \"$rrdtool update $rrddbpath$ifname$proc \" } \\\n";
|
||||
$rrdupdatesh .= "{ if ( \$2 == \"processes:\" ) { processes = \$1; } \\\n";
|
||||
$rrdupdatesh .= "else if ( \$1 == \"CPU\" ) { user = \$2; nice = \$4; sys = \$6; interrupt = \$8; } \\\n";
|
||||
$rrdupdatesh .= "else if ( \$1 == \"CPU:\" ) { user = \$2; nice = \$4; sys = \$6; interrupt = \$8; } \\\n";
|
||||
$rrdupdatesh .= "} END { printf \"N:\"user\":\"nice\":\"sys\":\"interrupt\":\"processes }'`\n\n";
|
||||
|
||||
/* End CPU statistics */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user