fix if disk_io_counters failed.

pull/4/head
WAKAYAMA shirou 11 years ago
parent 8098298111
commit 6898eef046

@ -93,10 +93,11 @@ func Test_Process_IOCounters(t *testing.T) {
v, err := p.IOCounters()
if err != nil {
t.Errorf("geting ppid error %v", err)
return
}
fmt.Println(v)
if v.ReadCount == 0 {
t.Errorf("return value is 0 %v", v)
}
fmt.Println(v)
}

Loading…
Cancel
Save