calculateOptimalBatch can return values larger than maxBatch

Status
This content is read-only, or is not open for further replies.

Xon

Guest
offline
I noticed that the $maxBatch sometimes doesn't apply if the $done value is larger than the expected for whatever reason.

PHP:

Code:
public function calculateOptimalBatch($expected, $done, $start, $maxTime, $maxBatch = null)
{
...
    if ($percentSpent > 1)
    {
        return max(1, $newExpected);
    }

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom