• elij's avatar
    try to fix diskio stats on FreeBSD-10.x · d1380cba
    elij authored
    FreeBSD apparently changed the magic sysctl mib values for devstats.
    
        --- FAIL: TestDisk_io_counters (0.00s)
        disk_test.go:39: error no such file or directory
        disk_test.go:42: ret is empty, map[]
    
    This code uses an undocumented, but exported, go stdlib method to fetch
    the sysctl by string instead of mib.
    d1380cba
Name
Last commit
Last update
..
common.go Loading commit data...
common_darwin.go Loading commit data...
common_freebsd.go Loading commit data...
common_linux.go Loading commit data...
common_test.go Loading commit data...
common_unix.go Loading commit data...
common_windows.go Loading commit data...