Browse Source

Fix build on 32-bit architectures

pull/196/head
Juergen Hoetzel 9 years ago
parent
commit
e3437dc583
  1. 2
      collector/filesystem_bsd.go

2
collector/filesystem_bsd.go

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

Loading…
Cancel
Save