diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-03-18 22:50:17 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-03-18 22:50:17 +0000 |
commit | 371b85588e5d0535089c3dca1dc9998709f0d4d6 (patch) | |
tree | 7f6972864fdcf97854e08197bb9d9014337a5f3e /etc | |
parent | f24f98298ad1fc2508f98f3a71da69816ca91f51 (diff) | |
download | pfsense-371b85588e5d0535089c3dca1dc9998709f0d4d6.zip pfsense-371b85588e5d0535089c3dca1dc9998709f0d4d6.tar.gz |
Correctly read the passed bandwidth for the root_queue.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/shaper.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 0448339..6dab3cf 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -367,13 +367,13 @@ class altq_root_queue { return $q; } - if (isset($q['bandwidth'])) { - switch ($q['bandwidthtype']) { + if (isset($queue['bandwidth'])) { + switch ($queue['bandwidthtype']) { case "%": - $myBw = $this->GetAvailableBandwidth() * $q['bandwidth'] / 100; + $myBw = $this->GetAvailableBandwidth() * $queue['bandwidth'] / 100; break; default: - $myBw = $q['bandwidth'] * get_bandwidthtype_scale($q['bandwdithtype']); + $myBw = $queue['bandwidth'] * get_bandwidthtype_scale($q['bandwdithtype']); break; } } |