fix last batch sizing

java-i2p-warning
Zlatin Balevsky 2022-08-28 08:57:03 +01:00
parent 049594f74a
commit c8ada0124d
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class BrowseSession implements Runnable {
if (j == batch.length) {
eventBus.publish(new UIResultBatchEvent(results: batch, uuid: uuid))
j = 0
batch = new UIResultEvent[Math.min(results - i - 1, BATCH_SIZE)]
batch = new UIResultEvent[Math.min(files - i - 1, BATCH_SIZE)]
log.fine("publishing batch, next batch size ${batch.length}")
}
}