Fixed calculateOptimalBatch can return values larger than maxBatch

Xon

Well-known member
Affected version
2.2.15
I noticed that the $maxBatch sometimes doesn't apply if the $done value is larger than the expected for whatever reason.

PHP:
public function calculateOptimalBatch($expected, $done, $start, $maxTime, $maxBatch = null)
{
...
    if ($percentSpent > 1)
    {
        return max(1, $newExpected);
    }
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0).

Change log:
Respect max batch when calculating optimal batch where more items completed than expected
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom