summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/wizards
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2016-11-07 11:19:16 -0500
committerSteve Beaver <sbeaver@netgate.com>2016-11-07 11:22:43 -0500
commita4a0f8dbe5a12aa3b09b85360d97bf7e500c4aa4 (patch)
treee63de9b905e76efa9806e3b28f506f1afec06df4 /src/usr/local/www/wizards
parent7c9f724cffc9b900332204fa28762cdb873e2122 (diff)
downloadpfsense-a4a0f8dbe5a12aa3b09b85360d97bf7e500c4aa4.zip
pfsense-a4a0f8dbe5a12aa3b09b85360d97bf7e500c4aa4.tar.gz
Fixed #6779 by rounding bandwidth down to nearest integer
Diffstat (limited to 'src/usr/local/www/wizards')
-rw-r--r--src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
index e695e1d..fbc01d4 100644
--- a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
+++ b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
@@ -908,14 +908,14 @@ function apply_all_chosen_items() {
$tmpcf['enabled'] = "on";
If ($sched == "CBQ") {
$tmpcf['borrow'] = "on";
- $tmpcf['bandwidth'] = $remainbw * 0.2;
+ $tmpcf['bandwidth'] = intval($remainbw * 0.2);
$tmpcf['bandwidthtype'] = "%";
}
else if ($sched == "HFSC") {
$lkbw = 0.20 * $remainbw;
- $tmpcf['linkshare3'] = "{$lkbw}%";
+ $tmpcf['linkshare3'] = intval($lkbw) . "%";
$tmpcf['linkshare'] = "on";
- $tmpcf['bandwidth'] = $lkbw;
+ $tmpcf['bandwidth'] = intval($lkbw);
$tmpcf['bandwidthtype'] = "%";
}
array_push($tmppath, "qACK");
OpenPOWER on IntegriCloud