Browse Source

fix CPU type/make

windows
Florian N 12 years ago
parent
commit
203e0e6db6
  1. 1
      .gitignore
  2. 4
      main/views.py
  3. 2
      pydash/settings.py

1
.gitignore

@ -1,3 +1,4 @@
*.pyc
._*
*.sqlite3
setting.py

4
main/views.py

@ -88,12 +88,12 @@ def get_cpus():
"""
try:
pipe = os.popen("cat /proc/cpuinfo |" + "grep 'model name'")
data = pipe.read().strip().split(':',2)[-1]
data = pipe.read().strip().split(':')[-1]
pipe.close()
if not data:
pipe = os.popen("cat /proc/cpuinfo |" + "grep 'Processor'")
data = pipe.read().strip().split(':',2)[-1]
data = pipe.read().strip().split(':')[-1]
pipe.close()
cpus = multiprocessing.cpu_count()

2
pydash/settings.py

@ -135,4 +135,4 @@ LOGGING = {
'propagate': True,
},
}
}
}
Loading…
Cancel
Save