mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[downloader] Cap worker processes at 16
This commit is contained in:
parent
7bf517aa00
commit
e44a00d37f
|
@ -39,7 +39,7 @@ class DLManager(Process):
|
||||||
self.dl_result_q = None
|
self.dl_result_q = None
|
||||||
self.writer_result_q = None
|
self.writer_result_q = None
|
||||||
self.max_jobs = max_jobs
|
self.max_jobs = max_jobs
|
||||||
self.max_workers = max_workers if max_workers else cpu_count() * 2
|
self.max_workers = max_workers if max_workers else min(cpu_count() * 2, 16)
|
||||||
|
|
||||||
# Analysis stuff
|
# Analysis stuff
|
||||||
self.analysis = None
|
self.analysis = None
|
||||||
|
|
Loading…
Reference in a new issue