Merge pull request #206 from problame/patch-1
Fix compile error on FreeBSD
This commit is contained in:
commit
e269be1a2a
|
@ -57,7 +57,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
|
|||
fstype := C.GoString(&mnt[i].f_fstypename[0])
|
||||
|
||||
var ro float64
|
||||
if mnt[i].f_flags & MNT_RDONLY {
|
||||
if (mnt[i].f_flags & MNT_RDONLY) != 0 {
|
||||
ro = 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue