Revision 1cdd354e
Added by Phil Davis about 9 years ago
src/etc/inc/upgrade_config.inc | ||
---|---|---|
4766 | 4766 |
foreach ($altq_list_queues as $altq) { |
4767 | 4767 |
$sum = $altq->GetTotalBw(); |
4768 | 4768 |
while ($sum > get_queue_bandwidth($altq)) { |
4769 |
if (intval(($sum / 1000) * 1.2) < 1024 * 1024)
|
|
4769 |
if (intval(($sum / 1000) * 1.2) < (1024 * 1024))
|
|
4770 | 4770 |
/* 1Gb where possible. */ |
4771 | 4771 |
$bw = 1024 * 1024; |
4772 | 4772 |
else |
src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | ||
---|---|---|
1227 | 1227 |
} |
1228 | 1228 |
else if ($sched == "HFSC") { |
1229 | 1229 |
$tmpcf['upperlimit'] = "on"; |
1230 |
$tmpcf['upperlimit3'] = $downqbw / 1000 . "Kb";
|
|
1230 |
$tmpcf['upperlimit3'] = ($downqbw / 1000) . "Kb";
|
|
1231 | 1231 |
$tmpcf['linkshare'] = "on"; |
1232 |
$tmpcf['linkshare3'] = $downqbw / 1000 . "Kb";
|
|
1232 |
$tmpcf['linkshare3'] = ($downqbw / 1000) . "Kb";
|
|
1233 | 1233 |
$tmpcf['bandwidth'] = $downqbw / 1000; |
1234 | 1234 |
$tmpcf['bandwidthtype'] = "Kb"; |
1235 | 1235 |
} |
src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | ||
---|---|---|
1306 | 1306 |
$tmpcf['bandwidthtype'] = "Kb"; |
1307 | 1307 |
} |
1308 | 1308 |
else if ($sched == "HFSC") { |
1309 |
$tmpcf['linkshare3'] = $lanqbw/1000 . "Kb";
|
|
1310 |
$tmpcf['upperlimit3'] = $lanqbw/1000 . "Kb";
|
|
1309 |
$tmpcf['linkshare3'] = ($lanqbw/1000) . "Kb";
|
|
1310 |
$tmpcf['upperlimit3'] = ($lanqbw/1000) . "Kb";
|
|
1311 | 1311 |
$tmpcf['upperlimit'] = "on"; |
1312 | 1312 |
$tmpcf['linkshare'] = "on"; |
1313 | 1313 |
$tmpcf['bandwidth'] = $lanqbw/1000; |
Also available in: Unified diff
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.