diff options
author | smos <seth.mos@dds.nl> | 2010-08-27 12:37:30 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2010-08-27 12:37:30 +0200 |
commit | 635633c7aec8a8486731de0e2eb09d26c6077fee (patch) | |
tree | 832efb5d6f8d17a3d2dce85af36b627b54cca364 /etc/inc/rrd.inc | |
parent | dfeb6800908af6bca5941ce7230def5e8fd197e7 (diff) | |
download | pfsense-635633c7aec8a8486731de0e2eb09d26c6077fee.zip pfsense-635633c7aec8a8486731de0e2eb09d26c6077fee.tar.gz |
Revert the top field change shift as these break a lot of other installs.
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r-- | etc/inc/rrd.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc index 30cea8c..aaf4256 100644 --- a/etc/inc/rrd.inc +++ b/etc/inc/rrd.inc @@ -559,7 +559,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 = \$3; nice = \$5; sys = \$7; interrupt = \$9; } \\\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 */ |