Merge pull request #196 from juergenhoetzel/freebsd_arm_fixes

Freebsd arm fixes
pull/165/head
Tobias Schmidt 2016-01-19 13:53:15 -05:00
commit e12241aac2
2 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
return nil, errors.New("getmntinfo() failed")
}
mnt := (*[1 << 30]C.struct_statfs)(unsafe.Pointer(mntbuf))
mnt := (*[1 << 20]C.struct_statfs)(unsafe.Pointer(mntbuf))
stats = []filesystemStats{}
for i := 0; i < int(count); i++ {
mountpoint := C.GoString(&mnt[i].f_mntonname[0])