mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-10 19:29:14 +08:00
disk[freebsd]: update devstat mib.
This commit is contained in:
parent
6365c902e7
commit
bb04b692c3
@ -13,9 +13,11 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
CTLKern = 1
|
||||
KernDevstat = 773
|
||||
KernDevstatAll = 772
|
||||
CTLKern = 1
|
||||
// KernDevstat = 773 // for freebsd 8.4
|
||||
// KernDevstatAll = 772 // for freebsd 8.4
|
||||
KernDevstat = 974
|
||||
KernDevstatAll = 975
|
||||
)
|
||||
|
||||
func DiskPartitions(all bool) ([]DiskPartitionStat, error) {
|
||||
|
@ -18,7 +18,6 @@ func TestDisk_usage(t *testing.T) {
|
||||
if v.Path != path {
|
||||
t.Errorf("error %v", err)
|
||||
}
|
||||
fmt.Println(v)
|
||||
}
|
||||
|
||||
func TestDisk_partitions(t *testing.T) {
|
||||
@ -44,7 +43,6 @@ func TestDisk_io_counters(t *testing.T) {
|
||||
}
|
||||
empty := DiskIOCountersStat{}
|
||||
for part, io := range ret {
|
||||
fmt.Println(io)
|
||||
if io == empty {
|
||||
t.Errorf("io_counter error %v, %v", part, io)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user