From 09b142c409fa29dc9ddffcb317efe01a3eddc248 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Wed, 25 May 2022 19:34:47 +0100 Subject: [PATCH] Derp --- src/FixityCheckBatchCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FixityCheckBatchCheck.php b/src/FixityCheckBatchCheck.php index 2c1d089..eb7f373 100644 --- a/src/FixityCheckBatchCheck.php +++ b/src/FixityCheckBatchCheck.php @@ -179,7 +179,7 @@ class FixityCheckBatchCheck { } $files = $storage->getPeriodic($sandbox['offset'], $batch_size); - $end = min($sandbox['total'], $sandbox['offset'] + count($files)); + $end = min($sandbox['remaining'], $sandbox['offset'] + count($files)); $context['message'] = \t('Processing @start to @end', [ '@start' => $sandbox['offset'], '@end' => $end,