Merge pull request #206 from problame/patch-1

Fix compile error on FreeBSD
This commit is contained in:
Brian Brazil 2016-02-16 14:31:26 +00:00
commit e269be1a2a
1 changed files with 1 additions and 1 deletions

View File

@ -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
}