From 561005887a87a4e7fdb7c10224b55ebf44166d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damjan=20Ko=C5=A1ir?= Date: Sun, 26 Apr 2015 00:23:45 +1200 Subject: [PATCH] unneeded max --- dosagelib/director.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/director.py b/dosagelib/director.py index 474c497fe..a621c5e2d 100644 --- a/dosagelib/director.py +++ b/dosagelib/director.py @@ -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)