]> git.ipfire.org Git - collecty.git/commitdiff
daemon: Decrease minimum number of worker threads to two
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Jun 2015 11:45:12 +0000 (11:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Jun 2015 11:45:12 +0000 (11:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/daemon.py

index 167d000ee46e5399ea5111d63d21c9f27cb35617..f5426fefef4a345803628e9429f08000caf8cc30 100644 (file)
@@ -193,9 +193,9 @@ class Collecty(object):
                        Creates a number of worker threads
                """
                # If no number of threads is given, we will create as many as we have
                        Creates a number of worker threads
                """
                # If no number of threads is given, we will create as many as we have
-               # active processor cores but never less than four.
+               # active processor cores but never less than two.
                if num is None:
                if num is None:
-                       num = max(multiprocessing.cpu_count(), 4)
+                       num = max(multiprocessing.cpu_count(), 2)
 
                worker_threads = []
 
 
                worker_threads = []