unneeded max

This commit is contained in:
Damjan Košir 2015-04-26 00:23:45 +12:00
parent ac7b0d7e0e
commit 561005887a

View file

@ -161,7 +161,7 @@ def getComics(options):
for scraperobj in getScrapers(options.comic, options.basepath, options.adult, options.multimatch):
jobs.put(scraperobj)
# start threads
num_threads = max(1, min(options.parallel, jobs.qsize()))
num_threads = min(options.parallel, jobs.qsize())
for i in range(num_threads):
t = ComicGetter(options)
threads.append(t)