I noticed that the
PHP:
Читать далее...
$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);
}
Читать далее...