From 0b13e3f9fedb1350b12b2acc1330f8de97753796 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 22 Jul 2010 19:03:28 +0000 Subject: Even on child queue honor when bandwidth is empty for HFSC this is valid. --- etc/inc/shaper.inc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'etc/inc/shaper.inc') diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 21d69c7..a9b9815 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -955,11 +955,9 @@ class priq_queue { $this->SetQname($q['name']); if (isset($q['interface'])) $this->SetInterface($q['interface']); - if ($q['bandwidth'] <> "") { - $this->SetBandwidth($q['bandwidth']); - if ($q['bandwidthtype'] <> "") - $this->SetBwscale($q['bandwidthtype']); - } + $this->SetBandwidth($q['bandwidth']); + if ($q['bandwidthtype'] <> "") + $this->SetBwscale($q['bandwidthtype']); if (!empty($q['qlimit'])) $this->SetQlimit($q['qlimit']); else @@ -1091,14 +1089,12 @@ class priq_queue { $form .= "
Enter the name of the queue here. Do not use spaces and limit the size to 15 characters."; $form .= "
"; $form .= ""; -/* HFSC actually does not use the priority at all. $form .= "Priority"; $form .= " GetQpriority()); $form .= "\">"; $form .= "
For hfsc, the range is 0 to 7. The default is 1. Hfsc queues with a higher priority are preferred in the case of overload."; $form .= ""; -*/ $form .= ""; $form .= "Queue limit"; $form .= " "; $form .= "Bandwidth: " . $this->GetBandwidth().$this->GetBwscale(); $form .= ""; -/* HFSC does not need priority. $form .= ""; $tmpvalue = $this->GetQpriority(); if (!empty($tmpvalue)) $form .= "Priority: on "; -*/ $tmpvalue = $this->GetDefault(); if (!empty($tmpvalue)) $form .= "Default: on "; -- cgit v1.1