Skip to content
Snippets Groups Projects
Commit 86b03700 authored by Amorilia's avatar Amorilia
Browse files

improved detection of number of processors

parent 7b19fafb
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ if arch == 'x86_64' and TUNE == 'yes': ...@@ -87,7 +87,7 @@ if arch == 'x86_64' and TUNE == 'yes':
#We want to detect the number of jobs! Although some folks depending on sys load may want to set it more aggressively. #We want to detect the number of jobs! Although some folks depending on sys load may want to set it more aggressively.
if DETECT_JOBS == 'yes' and OS == 'linux': if DETECT_JOBS == 'yes' and OS == 'linux':
detected_jobs = commands.getoutput('cat /proc/cpuinfo | grep -c processor') detected_jobs = commands.getoutput('cat /proc/cpuinfo | grep -c "^processor"')
if detected_jobs >= '1': if detected_jobs >= '1':
print "Detected Jobs: %s"%detected_jobs print "Detected Jobs: %s"%detected_jobs
JOBS = detected_jobs JOBS = detected_jobs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment