mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-02-21 03:25:57 -08:00
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])
|
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…
Reference in a new issue