summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_img.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-19 00:00:52 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-19 00:00:52 +0000
commit96b777d6f18223618d1814bacc9552549cf60f30 (patch)
treeb2d56d96647344d5e29318f2b1f8a092c95acb89 /usr/local/www/status_rrd_graph_img.php
parent87bdd838333187b70891c7dd9aad8b5462f66ab4 (diff)
downloadpfsense-96b777d6f18223618d1814bacc9552549cf60f30.zip
pfsense-96b777d6f18223618d1814bacc9552549cf60f30.tar.gz
Remove rrd files every time the wizard changes(for now).
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r--usr/local/www/status_rrd_graph_img.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index 40c1fed..200a8b5 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -511,13 +511,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\"`\"";
@@ -545,7 +545,7 @@ elseif((strstr($curdatabase, "-queuedrops.rrd")) && (file_exists("$rrddbpath$cur
\"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