Browse Source

DGI9-522 : Fix progress_halted and remaining item issue

pull/18/head
Prashant Kanse 2 years ago
parent
commit
e038413f43
  1. 5
      src/FixityCheckBatchCheck.php

5
src/FixityCheckBatchCheck.php

@ -187,9 +187,10 @@ class FixityCheckBatchCheck {
static::check($files, $force, $results); static::check($files, $force, $results);
$sandbox['offset'] = $end; $sandbox['offset'] = $end;
$remaining = $storage->countPeriodic(); $remaining = $storage->countPeriodic() - $end;
$progress_halted = $sandbox['remaining'] == $remaining; $progress_halted = $sandbox['remaining'] == $remaining;
$sandbox['remaining'] = $remaining; $sandbox['remaining'] = $storage->countPeriodic();
// End when we have exhausted all inputs or progress has halted. // End when we have exhausted all inputs or progress has halted.
$context['finished'] = empty($files) || $progress_halted; $context['finished'] = empty($files) || $progress_halted;

Loading…
Cancel
Save