summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-01-21 23:23:51 +0000
committerErmal Luçi <eri@pfsense.org>2008-01-21 23:23:51 +0000
commit5f928f22cd657c93380fa6a5536c4a4236cd691c (patch)
tree7f780fb07c0155c092cc0f05a369771582929e54 /usr/local/www/wizards
parentb0262cb22c6e20ee4abc729c4e41c08878173573 (diff)
downloadpfsense-5f928f22cd657c93380fa6a5536c4a4236cd691c.zip
pfsense-5f928f22cd657c93380fa6a5536c4a4236cd691c.tar.gz
Only calculate a factor for HFSC scheduler.
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc
index 6c106c5..4c4b35a 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard.inc
@@ -734,7 +734,7 @@ $othersplist = array();
$tmpcf['red'] = "on";
if ($sched == "CBQ") {
$tmpcf['borrow'] = "on";
- $tmpcf['bandwidth'] = $remainbw * (10 + $factor)/100; /* 10% bandwidth */
+ $tmpcf['bandwidth'] = $remainbw * (10)/100; /* 10% bandwidth */
$tmpcf['bandwidthtype'] = "%";
} else if ($sched == "HFSC") {
$tmpcf['bandwidth'] = $remainbw * (10 + $factor)/100; /* 10% bandwidth */
@@ -770,7 +770,7 @@ $othersplist = array();
} else {
if ($sched == "CBQ") {
$tmpcf['borrow'] = "on";
- $tmpcf['bandwidth'] = $remainbw * (5 + $factor)/100; /* 5% bandwidth */
+ $tmpcf['bandwidth'] = $remainbw * (5)/100; /* 5% bandwidth */
$tmpcf['bandwidthtype'] = "%";
} else if ($sched == "HFSC") {
$tmpcf['bandwidth'] = $remainbw * (5 + $factor)/100; /* 5% bandwidth */
@@ -799,7 +799,7 @@ $othersplist = array();
if ($voipbw > 0)
$tmpcf['bandwidth'] = $voipbw;
else
- $tmpcf['bandwidth'] = $remainbw * (25 + $factor)/100; /* 25% bandwidth */
+ $tmpcf['bandwidth'] = $remainbw * (25)/100; /* 25% bandwidth */
$tmpcf['bandwidthtype'] = "%";
} else if ($sched == "HFSC") {
if ($voipbw > 0) {
@@ -842,7 +842,7 @@ $othersplist = array();
$tmpcf['red'] = "on";
if ($sched == "CBQ") {
$tmpcf['borrow'] = "on";
- $tmpcf['bandwidth'] = $remainbw * (20 + $factor)/100; /* 20% bandwidth */
+ $tmpcf['bandwidth'] = $remainbw * (20)/100; /* 20% bandwidth */
$tmpcf['bandwidthtype'] = "%";
} else if ($sched == "HFSC") {
$tmpcf['realtime'] = "on";
@@ -874,7 +874,7 @@ $othersplist = array();
$tmpcf['red'] = "on";
if ($sched == "CBQ") {
$tmpcf['borrow'] = "on";
- $tmpcf['bandwidth'] = $remainbw * (10 + $factor)/100; /* 10% bandwidth */
+ $tmpcf['bandwidth'] = $remainbw * (10)/100; /* 10% bandwidth */
$tmpcf['bandwidthtype'] = "%";
} else if ($sched == "HFSC") {
$tmpcf['realtime'] = "on";
@@ -905,7 +905,7 @@ $othersplist = array();
if ($penalty)
$tmpcf['bandwidth'] = $penaltybw;
else
- $tmpcf['bandwidth'] = $remainbw * (5 + $factor)/100; /* 5% bandwidth */
+ $tmpcf['bandwidth'] = $remainbw * (5)/100; /* 5% bandwidth */
$tmpcf['bandwidthtype'] = "%";
} else if ($sched == "HFSC") {
if ($penalty)
OpenPOWER on IntegriCloud