From 5c2b556c60e471e20c3e71c30a04f1271712415b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Sun, 1 Jun 2008 17:29:13 +0000 Subject: If we do not have bandwidth configured for altq root queue, perfectly legal config, assume a 100Mbit/s speed on rrd graphs. --- etc/inc/pfsense-utils.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 2170028..e0ffc7c 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -3307,6 +3307,8 @@ function enable_rrd_graphing() { break; } $qbandwidth = $altq->GetBandwidth() * $factor; + if ($qbandwidth <=0) + $qbandwidth = 100 * 1000 * 1000; /* 100Mbit */ $qlist =& $altq->get_queue_list($notused); if (!file_exists("$rrddbpath$ifname$queues")) { /* create rrd file if it does not exist */ -- cgit v1.1