summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/wizards
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-29 06:59:06 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-29 06:59:06 +0545
commit1cdd354e3ff56970215c169ac77b13f8d1dbca5c (patch)
tree2710f42d53ca8c239777a5da59a02e67e6505ecc /src/usr/local/www/wizards
parentfbe6a2ce782a09a043c871215d0b8c4812fc7778 (diff)
downloadpfsense-1cdd354e3ff56970215c169ac77b13f8d1dbca5c.zip
pfsense-1cdd354e3ff56970215c169ac77b13f8d1dbca5c.tar.gz
Add brackets for clarity
Add some extra brackets for clarity, rather than relying on the operator precedence rules. IMHO this makes it more readable, and no need for the reader to wonder if anything might go wrong with the operator precedence.
Diffstat (limited to 'src/usr/local/www/wizards')
-rw-r--r--src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc4
-rw-r--r--src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
index b29d1d0..918e27a 100644
--- a/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
+++ b/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
@@ -1227,9 +1227,9 @@ function apply_all_chosen_items() {
}
else if ($sched == "HFSC") {
$tmpcf['upperlimit'] = "on";
- $tmpcf['upperlimit3'] = $downqbw / 1000 . "Kb";
+ $tmpcf['upperlimit3'] = ($downqbw / 1000) . "Kb";
$tmpcf['linkshare'] = "on";
- $tmpcf['linkshare3'] = $downqbw / 1000 . "Kb";
+ $tmpcf['linkshare3'] = ($downqbw / 1000) . "Kb";
$tmpcf['bandwidth'] = $downqbw / 1000;
$tmpcf['bandwidthtype'] = "Kb";
}
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 d7f5e7a..8733925 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
@@ -1306,8 +1306,8 @@ function apply_all_chosen_items() {
$tmpcf['bandwidthtype'] = "Kb";
}
else if ($sched == "HFSC") {
- $tmpcf['linkshare3'] = $lanqbw/1000 . "Kb";
- $tmpcf['upperlimit3'] = $lanqbw/1000 . "Kb";
+ $tmpcf['linkshare3'] = ($lanqbw/1000) . "Kb";
+ $tmpcf['upperlimit3'] = ($lanqbw/1000) . "Kb";
$tmpcf['upperlimit'] = "on";
$tmpcf['linkshare'] = "on";
$tmpcf['bandwidth'] = $lanqbw/1000;
OpenPOWER on IntegriCloud