summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-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 15a096b..d732409 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