Commit b30df586 authored by Unknown's avatar Unknown
Browse files

Core initialization bugfix

parent a2f997da
......@@ -151,8 +151,9 @@ class Process(object):
self._cores = psutil.cpu_count() - 2
else:
cores = int(abs(cores))
self._cores = min(psutil.cpu_count(), max(1, cores))
self._cores = min(psutil.cpu_count(), cores)
self._cores = max(1, self._cores)
_max_mem_mb = getAvailableMem() / 1E6 # in MB
self._max_mem_mb = min(_max_mem_mb, mem)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment