[freebsd] cpu: fix CPUInfo on 10.3R

Related: #307
This commit is contained in:
WAKAYAMA shirou 2017-05-10 11:47:26 +09:00
parent 37c114fe6c
commit b6da2bd76e
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func Info() ([]InfoStat, error) {
func parseDmesgBoot(fileName string) (InfoStat, int, error) {
c := InfoStat{}
lines, _ := common.ReadLines(fileName)
var cpuNum int
cpuNum := 1 // default cpu num is 1
for _, line := range lines {
if matches := cpuEnd.FindStringSubmatch(line); matches != nil {
break