diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-01-21 23:23:51 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-01-21 23:23:51 +0000 |
commit | 5f928f22cd657c93380fa6a5536c4a4236cd691c (patch) | |
tree | 7f780fb07c0155c092cc0f05a369771582929e54 /usr/local/www | |
parent | b0262cb22c6e20ee4abc729c4e41c08878173573 (diff) | |
download | pfsense-5f928f22cd657c93380fa6a5536c4a4236cd691c.zip pfsense-5f928f22cd657c93380fa6a5536c4a4236cd691c.tar.gz |
Only calculate a factor for HFSC scheduler.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.inc | 12 |
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) |