Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Accurately get hardware cpu count in Vagrantfile. #8024
I have a pretty fast 4 core intel proc (i5-2500k @ 4.2ghz turbo) without hyperthreading enabled so when I spotted the copy-pasta here assuming hyperthreading I whipped up a quick fix. Tested on Yosemite (on a laptop that does have hyperthreading) and Fedora 21 but should be quite portable, did a little googling to find some methods of getting physical core count. Not sure about the best solution for windows so I left that as is.