Skip to content

Commit 2555190

Browse files
committed
Correct processor count
Wrong count in some cases `cat /proc/cpuinfo | grep processor` ``` processor : 0 model name : VIA Nano processor U2250 (1.6GHz Capable) ``` return 2 whereas it has to return 1
1 parent a831d55 commit 2555190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fabgis/proj4.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def build_proj4(version='4.8.0'):
4040
run('wget %s' % source_url)
4141
run('tar xfz %s.tar.gz' % filename)
4242

43-
processor_count = run('cat /proc/cpuinfo | grep processor | wc -l')
43+
processor_count = run('cat /proc/cpuinfo | grep ^processor | wc -l')
4444

4545
with cd(code_path):
4646
# Dont fail if make clean does not work

0 commit comments

Comments
 (0)