Bug 473316 - Infinite loop in images renderer when few images

Take the max of 1 and the division of threads among images so that, if
the number of images is fewer than half the number of threads, a batch
size of 1 (not 0) is used.

Avoid infinite loop when few images.

Change-Id: Id284414fc2f929ec1875109206799e87db1c36b9
Signed-off-by: Ben Cox <benjamin.cox@uk.ibm.com>
2 files changed
tree: 3d662095178d552ae1e4a35b9cd69d0eaea45af9
  1. bundles/