summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-08-23 23:24:22 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-08-23 23:24:22 -0600
commit2103b25243715930aae8019b0ee2e8a16b7418fe (patch)
tree73d55aba77cff6baed84142e548ec1d1f3ef2e90 /usr/local/www/status_rrd_graph.php
parent44aef5432bf5e647d79b5951015076909f6c136c (diff)
downloadpfsense-2103b25243715930aae8019b0ee2e8a16b7418fe.zip
pfsense-2103b25243715930aae8019b0ee2e8a16b7418fe.tar.gz
Skip the placeholder databases when outbound is selected, too. Also don't check the name against the gateway list on anything but the quality tab.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 3630bba..1daae30 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -444,11 +444,19 @@ function get_dates($curperiod, $graph) {
$replace = array(" :: ", "", $friendly);
switch($curoption) {
case "outbound":
+ /* make sure we do not show the placeholder databases in the outbound view */
+ if((stristr($curdatabase, "outbound")) || (stristr($curdatabase, "allgraphs"))) {
+ continue 2;
+ }
/* only show interfaces with a gateway */
$optionc = "$optionc[0]";
if(!interface_has_gateway($optionc)) {
- if(!isset($gateways_arr))
- $gateways_arr = return_gateways_array();
+ if(!isset($gateways_arr)) {
+ if(preg_match("/quality/i", $curdatabase))
+ $gateways_arr = return_gateways_array();
+ else
+ $gateways_arr = array();
+ }
$found_gateway = false;
foreach ($gateways_arr as $gw) {
if ($gw['name'] == $optionc) {
@@ -511,10 +519,18 @@ function get_dates($curperiod, $graph) {
$replace = array(" :: ", "", $friendly);
switch($curoption) {
case "outbound":
+ /* make sure we do not show the placeholder databases in the outbound view */
+ if((stristr($curdatabase, "outbound")) || (stristr($curdatabase, "allgraphs"))) {
+ continue 2;
+ }
+ /* only show interfaces with a gateway */
$optionc = "$optionc[0]";
if(!interface_has_gateway($optionc)) {
if(!isset($gateways_arr))
- $gateways_arr = return_gateways_array();
+ if(preg_match("/quality/i", $curdatabase))
+ $gateways_arr = return_gateways_array();
+ else
+ $gateways_arr = array();
$found_gateway = false;
foreach ($gateways_arr as $gw) {
if ($gw['name'] == $optionc) {
OpenPOWER on IntegriCloud