summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-18 22:50:17 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-18 22:50:17 +0000
commit371b85588e5d0535089c3dca1dc9998709f0d4d6 (patch)
tree7f6972864fdcf97854e08197bb9d9014337a5f3e
parentf24f98298ad1fc2508f98f3a71da69816ca91f51 (diff)
downloadpfsense-371b85588e5d0535089c3dca1dc9998709f0d4d6.zip
pfsense-371b85588e5d0535089c3dca1dc9998709f0d4d6.tar.gz
Correctly read the passed bandwidth for the root_queue.
-rw-r--r--etc/inc/shaper.inc8
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;
}
}
OpenPOWER on IntegriCloud