summaryrefslogtreecommitdiffstats
path: root/src/etc
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/etc
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/etc')
-rw-r--r--src/etc/inc/upgrade_config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc
index 15fc0b4..2b02d80 100644
--- a/src/etc/inc/upgrade_config.inc
+++ b/src/etc/inc/upgrade_config.inc
@@ -4766,7 +4766,7 @@ function upgrade_148_to_149() {
foreach ($altq_list_queues as $altq) {
$sum = $altq->GetTotalBw();
while ($sum > get_queue_bandwidth($altq)) {
- if (intval(($sum / 1000) * 1.2) < 1024 * 1024)
+ if (intval(($sum / 1000) * 1.2) < (1024 * 1024))
/* 1Gb where possible. */
$bw = 1024 * 1024;
else
OpenPOWER on IntegriCloud