Skip to content

Commit

Permalink
Merge pull request #10692 from johscheuer/fix-docker-helper
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Oct 11, 2016
2 parents 88a2e30 + 4412719 commit 8f6030a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/bootstrap/docker/dockermachine/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ func determineMachineMemory() int {
// TODO: implement linux & windows
func determineMachineProcessors() int {
if runtime.GOOS == "darwin" {
output, _, err := localcmd.New("sysctl").Args("-n", "hw.ncpus").Output()
output, _, err := localcmd.New("sysctl").Args("-n", "hw.logicalcpu").Output()
if err == nil {
ncpus, aerr := strconv.Atoi(strings.TrimSpace(output))
cpus, aerr := strconv.Atoi(strings.TrimSpace(output))
if aerr == nil {
return ncpus // use all cpus
return cpus // use all cpus
}
}
}
Expand Down

0 comments on commit 8f6030a

Please sign in to comment.