Merge pull request #4157 from PeterDaveHello/improve-vagrant-cpu-core-detection

Improve CPU core detection in Vagrantfile
This commit is contained in:
Alex Dadgar 2018-04-16 09:50:46 -07:00 committed by GitHub
commit 300f134e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -156,7 +156,7 @@ def suggestedCPUCores()
when /darwin/
Integer(`sysctl -n hw.ncpu`) / 2
when /linux/
Integer(`cat /proc/cpuinfo | grep processor | wc -l`) / 2
Integer(`grep -c ^processor /proc/cpuinfo`) / 2
else
2
end