summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-02-23 02:22:30 +0000
committerErmal Luçi <eri@pfsense.org>2008-02-23 02:22:30 +0000
commit21a0464c1a66792acd91e852c47d7838c49df303 (patch)
treed8d106d0dab053c921ab41a2a142faff0202648e /usr/local/www/status_rrd_graph.php
parent8e2a7e8a28d893c287afc69538e7fdb30002ba86 (diff)
downloadpfsense-21a0464c1a66792acd91e852c47d7838c49df303.zip
pfsense-21a0464c1a66792acd91e852c47d7838c49df303.tar.gz
* Unbreak rrd graphs for queues and make them multiinterface aware
* Add a new tab for queuedrops with multiinterface there is no way to have them in the same tab * Remove $GLOBAL where used and use proper accessor functions * Remove Manuel from copyright this file has been rewritten * Some bugs fixes in general
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index c318421..aeb03d6 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -47,6 +47,8 @@ if ($_GET['option']) {
$curoption = "processor";
} else if($curcat == "queues") {
$curoption = "queues";
+ } else if($curcat == "queuedrops") {
+ $curoption = "queuedrops";
} else {
$curoption = "wan";
}
@@ -111,6 +113,8 @@ include("head.inc");
$tab_array[] = array("Quality", $tabactive, "status_rrd_graph.php?cat=quality");
if($curcat == "queues") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array("Queues", $tabactive, "status_rrd_graph.php?cat=queues");
+ if($curcat == "queuesdrop") { $tabactive = True; } else { $tabactive = False; }
+ $tab_array[] = array("QueueDrops", $tabactive, "status_rrd_graph.php?cat=queuedrops");
if($curcat == "wireless") { $tabactive = True; } else { $tabactive = False; }
$tab_array[] = array("Wireless", $tabactive, "status_rrd_graph.php?cat=wireless");
if($curcat == "settings") { $tabactive = True; } else { $tabactive = False; }
@@ -145,11 +149,6 @@ include("head.inc");
echo "<option value=\"$optionc\"";
$prettyprint = ucwords(str_replace($search, $replace, $optionc));
break;
- case "queues":
- $optionc = str_replace($search, $replace, $optionc[1]);
- echo "<option value=\"$optionc\"";
- $prettyprint = ucwords(str_replace($search, $replace, $optionc));
- break;
default:
/* Deduce a interface if possible and use the description */
$optionc = "$optionc[0]";
OpenPOWER on IntegriCloud