Fix the core detection on Linux.

This commit is contained in:
Chris Johns 2013-05-16 15:34:00 +10:00
parent 6e583e5d3e
commit b83b596ba0

View File

@ -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