mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
Fix lint issues on filesystem BSD implementation
This commit is contained in:
parent
6580c95305
commit
7b93b52010
|
@ -34,7 +34,7 @@ import "C"
|
||||||
const (
|
const (
|
||||||
defIgnoredMountPoints = "^/(dev)($|/)"
|
defIgnoredMountPoints = "^/(dev)($|/)"
|
||||||
defIgnoredFSTypes = "^devfs$"
|
defIgnoredFSTypes = "^devfs$"
|
||||||
MNT_RDONLY = 0x1
|
readOnly = 0x1 // MNT_RDONLY
|
||||||
)
|
)
|
||||||
|
|
||||||
// Expose filesystem fullness.
|
// Expose filesystem fullness.
|
||||||
|
@ -62,7 +62,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var ro float64
|
var ro float64
|
||||||
if (mnt[i].f_flags & MNT_RDONLY) != 0 {
|
if (mnt[i].f_flags & readOnly) != 0 {
|
||||||
ro = 1
|
ro = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue