Fuzzer 074 support integer multiple of nbBlocks

Signed-off-by: Mehdi Khairy <mehdi.khairy@more-magic.org>
This commit is contained in:
Mehdi Khairy 2019-01-19 03:25:35 +01:00
parent f61ccd1f2a
commit 83dde348b4
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def run_pool(itemcount, nbBlocks, blocksize, nbParBlock, workFunc):
# We handle the case of not integer multiple of pips
intitemcount = blocksize * nbBlocks
lastRun = False
modBlocks = itemcount % nbBlocks
modBlocks = itemcount - intitemcount
if modBlocks != 0:
lastRun = True
nbBlocks = nbBlocks + 1