disk[freebsd]: update devstat mib.

pull/71/head
WAKAYAMA shirou 10 years ago
parent 6365c902e7
commit bb04b692c3

@ -13,9 +13,11 @@ import (
) )
const ( const (
CTLKern = 1 CTLKern = 1
KernDevstat = 773 // KernDevstat = 773 // for freebsd 8.4
KernDevstatAll = 772 // KernDevstatAll = 772 // for freebsd 8.4
KernDevstat = 974
KernDevstatAll = 975
) )
func DiskPartitions(all bool) ([]DiskPartitionStat, error) { func DiskPartitions(all bool) ([]DiskPartitionStat, error) {

@ -18,7 +18,6 @@ func TestDisk_usage(t *testing.T) {
if v.Path != path { if v.Path != path {
t.Errorf("error %v", err) t.Errorf("error %v", err)
} }
fmt.Println(v)
} }
func TestDisk_partitions(t *testing.T) { func TestDisk_partitions(t *testing.T) {
@ -44,7 +43,6 @@ func TestDisk_io_counters(t *testing.T) {
} }
empty := DiskIOCountersStat{} empty := DiskIOCountersStat{}
for part, io := range ret { for part, io := range ret {
fmt.Println(io)
if io == empty { if io == empty {
t.Errorf("io_counter error %v, %v", part, io) t.Errorf("io_counter error %v, %v", part, io)
} }

Loading…
Cancel
Save