We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d763cf commit 6cde7c1Copy full SHA for 6cde7c1
cmd/minikube/cmd/start.go
@@ -539,12 +539,14 @@ func validateConfig() {
539
out.V{"memory": memorySizeMB, "default_memorysize": pkgutil.CalculateSizeInMB(constants.DefaultMemorySize)})
540
}
541
542
+ var cpuCount int
543
if viper.GetString(vmDriver) == constants.DriverNone {
- ci, err := cpu.Info()
544
+ // Uses the gopsutil cpu package to count the number of physical cpu cores
545
+ ci, err := cpu.Counts(false)
546
if err != nil {
- glog.Warningf("Unable to get CPU info: $v", err)
547
+ glog.Warningf("Unable to get CPU info: %v", err)
548
} else {
- cpuCount = ci.Cores
549
+ cpuCount = ci
550
551
552
cpuCount = viper.GetInt(cpus)
0 commit comments