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