Merge pull request #584 from Quasilyte/quasilyte/commentedOutCode

cpu,process: remove commented-out code
pull/595/head
shirou 7 years ago committed by GitHub
commit 6f5e32dd2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -212,7 +212,6 @@ func parseStatLine(line string) (*TimesStat, error) {
} }
if strings.HasPrefix(fields[0], "cpu") == false { if strings.HasPrefix(fields[0], "cpu") == false {
// return CPUTimesStat{}, e
return nil, errors.New("not contain cpu") return nil, errors.New("not contain cpu")
} }

@ -168,12 +168,6 @@ func Test_Process_Terminal(t *testing.T) {
if err != nil { if err != nil {
t.Errorf("geting terminal error %v", err) t.Errorf("geting terminal error %v", err)
} }
/*
if v == "" {
t.Errorf("could not get terminal %v", v)
}
*/
} }
func Test_Process_IOCounters(t *testing.T) { func Test_Process_IOCounters(t *testing.T) {

Loading…
Cancel
Save