FIXUP: num_batches miscalculation

This commit is contained in:
deeplow 2023-11-06 11:12:26 +00:00
parent f99ad74fd3
commit c0a656cd42
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -60,7 +60,7 @@ def get_batch_timeout(timeout: Optional[float], num_pages: int) -> Optional[floa
if timeout is None:
return None
else:
num_batches = int(num_pages / PAGE_BATCH_SIZE)
num_batches = int(num_pages / PAGE_BATCH_SIZE) + 1
return timeout / num_batches