1
0
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:
WAKAYAMA shirou 2015-09-03 10:38:21 +09:00
parent 6365c902e7
commit bb04b692c3
2 changed files with 5 additions and 5 deletions

View File

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

View File

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