From 86b03700251d51f1b058390eb33064f1e2459cb2 Mon Sep 17 00:00:00 2001 From: Amorilia <amorilia@users.sourceforge.net> Date: Sun, 18 Mar 2007 12:43:37 +0000 Subject: [PATCH] improved detection of number of processors --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 54dea4bd..91c6710f 100644 --- a/SConstruct +++ b/SConstruct @@ -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. 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': print "Detected Jobs: %s"%detected_jobs JOBS = detected_jobs -- GitLab