summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2013-01-09 19:34:16 +0200
committerWarren Baker <warren@decoy.co.za>2013-01-09 19:34:16 +0200
commitb13a841bc2a83061e42ecbc5c9a73fd133f054fd (patch)
treeaeb7e1c42ca7b1ece84b56fcfb3d764cfdec1a4c /usr
parenta6f1f6d1ecf48cea4c7865a56682c58c40bf4cde (diff)
downloadpfsense-b13a841bc2a83061e42ecbc5c9a73fd133f054fd.zip
pfsense-b13a841bc2a83061e42ecbc5c9a73fd133f054fd.tar.gz
In the case that no bandwidth limits are configured for queues but PRIQ is been used then rather set a default otherwise a value of 0 is used in the CDEFs for RRD
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/status_rrd_graph_img.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index fea016b..9260b22 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -173,7 +173,10 @@ if ($altq_list_queues[$curif]) {
break;
}
$upstream = (($altq->GetBandwidth()*$factor)/8);
- $downstream = $upstream; /* XXX: Ugly hack */
+ if ($upstream != 0)
+ $downstream = $upstream; /* XXX: Ugly hack */
+ else
+ $downstream = $upstream = 12500000;
$upif = $curif;
$downif = "lan"; /* XXX should this be set to something else?! */
} else {
OpenPOWER on IntegriCloud