diff options
author | Warren Baker <warren@decoy.co.za> | 2013-01-09 19:34:16 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2013-01-09 20:51:33 +0200 |
commit | f0fb3d447f9c4601121fe3f9ed4b9b148b589aa9 (patch) | |
tree | dd705346014ad626fdae7bdf47dd4a97233cf82b | |
parent | 202699ad0153ab3e57c3792c3d1493e4a7276e03 (diff) | |
download | pfsense-f0fb3d447f9c4601121fe3f9ed4b9b148b589aa9.zip pfsense-f0fb3d447f9c4601121fe3f9ed4b9b148b589aa9.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
-rw-r--r-- | usr/local/www/status_rrd_graph_img.php | 5 |
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 { |