diff --git a/autoworker/__init__.py b/autoworker/__init__.py index 552866b..3b5782d 100644 --- a/autoworker/__init__.py +++ b/autoworker/__init__.py @@ -15,7 +15,8 @@ from osconf import config_from_environment -MAX_PROCS = max(mp.cpu_count() - os.getloadavg()[0], 0) + 1 +#MAX_PROCS = max(mp.cpu_count() - os.getloadavg()[0], 0) + 1 +MAX_PROCS = int(max((mp.cpu_count() * (1 - os.getloadavg()[0]), 0)) +1) """Number of maximum procs we can run """