From 96b777d6f18223618d1814bacc9552549cf60f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Wed, 19 Mar 2008 00:00:52 +0000 Subject: Remove rrd files every time the wizard changes(for now). --- usr/local/www/status_rrd_graph_img.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/local/www/status_rrd_graph_img.php') 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\"`\""; -- cgit v1.1