Skip to content

Commit

Permalink
FIXUP: num_batches miscalculation
Browse files Browse the repository at this point in the history
  • Loading branch information
deeplow committed Nov 6, 2023
1 parent f99ad74 commit c0a656c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dangerzone/conversion/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit c0a656c

Please sign in to comment.