mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +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.writer_result_q = None
|
||||
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
|
||||
self.analysis = None
|
||||
|
|
Loading…
Reference in a new issue