summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/linux.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-05-16 15:34:00 +1000
committerChris Johns <chrisj@rtems.org>2013-05-16 15:34:00 +1000
commitb83b596ba0e691e74bd54a97a0a7162e3b8dab9b (patch)
treef62e3d5b79c14bef0d626861ed48561b47887f72 /source-builder/sb/linux.py
parentUpdate the automake version to 1.12.6 as required by rtems/configure.ac (diff)
downloadrtems-source-builder-b83b596ba0e691e74bd54a97a0a7162e3b8dab9b.tar.bz2
Fix the core detection on Linux.
Diffstat (limited to 'source-builder/sb/linux.py')
-rw-r--r--source-builder/sb/linux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source-builder/sb/linux.py b/source-builder/sb/linux.py
index 6c4cf52..16bf0f1 100644
--- a/source-builder/sb/linux.py
+++ b/source-builder/sb/linux.py
@@ -40,7 +40,7 @@ def load():
try:
for l in output.split('\n'):
count = l.split(':')[1].strip()
- if count > cpus:
+ if int(count) > ncpus:
ncpus = int(count)
except:
pass