1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

fix if disk_io_counters failed.

This commit is contained in:
WAKAYAMA shirou 2014-05-01 18:46:40 +09:00
parent 8098298111
commit 6898eef046

View File

@ -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)
}