mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Fix the core detection on Linux.
This commit is contained in:
@@ -40,7 +40,7 @@ def load():
|
|||||||
try:
|
try:
|
||||||
for l in output.split('\n'):
|
for l in output.split('\n'):
|
||||||
count = l.split(':')[1].strip()
|
count = l.split(':')[1].strip()
|
||||||
if count > cpus:
|
if int(count) > ncpus:
|
||||||
ncpus = int(count)
|
ncpus = int(count)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user