summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-27 16:56:47 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-27 16:56:47 +0000
commit90c58761b43762fc24a3cfddcd5c3b404c3269d1 (patch)
tree1052f438788df1e45c51a87b691d1d7eb7b02e44 /usr
parentf8e70893a187c890366ce86321e6524fe1b469c4 (diff)
downloadpfsense-90c58761b43762fc24a3cfddcd5c3b404c3269d1.zip
pfsense-90c58761b43762fc24a3cfddcd5c3b404c3269d1.tar.gz
Revert this to allow graphs to work.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/status_rrd_graph_img.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index 2a8cdd2..6d7ae8f 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -564,13 +564,13 @@ elseif((strstr($curdatabase, "-queues.rrd")) && (file_exists("$rrddbpath$curdata
$t = 0;
foreach ($a_queues as $name => $q) {
$color = "$colorqueuesup[$t]";
- if($t > 0) { $stack = ":STACK"; }
+ //if($t > 0) { $stack = ":STACK"; }
$graphcmd .= "DEF:$name=$rrddbpath$curdatabase:$name:AVERAGE \\
\"CDEF:$name-bytes_out=$name,0,$upstream,LIMIT,UN,0,$name,IF\" \\
\"CDEF:$name-bits_out=$name-bytes_out,8,*\" \\
$AREA:$name-bits_out#${color}:$name \\";
$t++;
- //if($t > 7) { $t = 0; }
+ if($t > 7) { $t = 0; }
}
$graphcmd .= "COMMENT:\"\\n\" \\";
$graphcmd .= "COMMENT:\"\t\t\t\t\t\t\t\t\t\t\t\t\t`date +\"%b %d %H\:%M\:%S %Y\"`\"";
@@ -591,14 +591,14 @@ elseif((strstr($curdatabase, "-queuedrops.rrd")) && (file_exists("$rrddbpath$cur
$t = 0;
foreach ($a_queues as $name => $q) {
$color = "$colorqueuesdropup[$t]";
- if($t > 0) { $stack = ":STACK"; }
+ //if($t > 0) { $stack = ":STACK"; }
$graphcmd .= "DEF:$name=$rrddbpath$curdatabase:$name:AVERAGE \\
\"CDEF:$name-bytes_out=$name,0,$upstream,LIMIT,UN,0,$name,IF\" \\
\"CDEF:$name-bits_out=$name-bytes_out,8,*\" \\
\"CDEF:$name-bits_out_neg=$name-bits_out,$multiplier,*\" \\
$AREA:$name-bits_out_neg#${color}:$name \\";
$t++;
- //if($t > 7) { $t = 0; }
+ if($t > 7) { $t = 0; }
}
$graphcmd .= "COMMENT:\"\\n\" \\";
$graphcmd .= "COMMENT:\"\t\t\t\t\t\t\t\t\t\t\t\t\t`date +\"%b %d %H\:%M\:%S %Y\"`\"";
OpenPOWER on IntegriCloud