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:
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…
x
Reference in New Issue
Block a user