diff options
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 0f81bab..4f27e09 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -4759,12 +4759,13 @@ 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 + } else { /* Increase by 20% until it fits. */ $bw = intval(($sum / 1000) * 1.2); + } $altq->SetBandwidth($bw); $altq->SetBwscale("Kb"); $altq->wconfig(); |