Allow running isa_tests on CPUs with <=4 cores

This commit is contained in:
Peter Rugg
2020-03-31 17:34:41 +01:00
parent 81da99237e
commit fe2420e42f

View File

@@ -129,7 +129,7 @@ def main (argv = None):
n_workers = int (argv [j])
else:
n_workers = multiprocessing.cpu_count () - 4
n_workers = min (n_workers_max, n_workers)
n_workers = max(min (n_workers_max, n_workers), 1)
sys.stdout.write ("Using {0} worker processes\n".format (n_workers))
# End of command-line arg processing