mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 20:51:49 +02:00
FIXUP: num_batches miscalculation
This commit is contained in:
parent
f99ad74fd3
commit
c0a656cd42
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue