diff --git a/cpu/cpu_linux.go b/cpu/cpu_linux.go index 23b0952..2bcade6 100644 --- a/cpu/cpu_linux.go +++ b/cpu/cpu_linux.go @@ -212,7 +212,6 @@ func parseStatLine(line string) (*TimesStat, error) { } if strings.HasPrefix(fields[0], "cpu") == false { - // return CPUTimesStat{}, e return nil, errors.New("not contain cpu") } diff --git a/process/process_test.go b/process/process_test.go index 7cdcedb..a95efc2 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -168,12 +168,6 @@ func Test_Process_Terminal(t *testing.T) { if err != nil { t.Errorf("geting terminal error %v", err) } - - /* - if v == "" { - t.Errorf("could not get terminal %v", v) - } - */ } func Test_Process_IOCounters(t *testing.T) {