Fix build on 32-bit architectures

This commit is contained in:
Juergen Hoetzel 2016-01-19 18:30:00 +01:00
parent d955d99e7b
commit e3437dc583

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])