diff --git a/cpu_linux.go b/cpu_linux.go index ae17168..74e3e20 100644 --- a/cpu_linux.go +++ b/cpu_linux.go @@ -35,7 +35,7 @@ func CPUInfo() ([]CPUInfoStat, error) { for _, line := range lines { fields := strings.Split(line, ":") if len(fields) < 2 { - if c.VendorId != "" { + if c.VendorID != "" { ret = append(ret, c) } continue diff --git a/cpu_test.go b/cpu_test.go index 5c6ca25..15b6705 100644 --- a/cpu_test.go +++ b/cpu_test.go @@ -50,7 +50,6 @@ func TestCpuInfo(t *testing.T) { t.Errorf("error %v", err) } for _, vv := range v { - fmt.Println(vv) if vv.ModelName == "" { t.Errorf("could not get CPU Info: %v", vv) }