Fix typos, and initialisms from comments in #217
This commit is contained in:
parent
3fe5e7f8fa
commit
bf88b6ee0f
3 changed files with 10 additions and 10 deletions
|
|
@ -33,7 +33,7 @@ import "C"
|
|||
|
||||
const (
|
||||
defIgnoredMountPoints = "^/(dev)($|/)"
|
||||
defIgnoredFsTypes = "^devfs$"
|
||||
defIgnoredFSTypes = "^devfs$"
|
||||
MNT_RDONLY = 0x1
|
||||
)
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
|
|||
|
||||
device := C.GoString(&mnt[i].f_mntfromname[0])
|
||||
fstype := C.GoString(&mnt[i].f_fstypename[0])
|
||||
if c.ignoredFsTypesPattern.MatchString(fstype) {
|
||||
if c.ignoredFSTypesPattern.MatchString(fstype) {
|
||||
log.Debugf("Ignoring fs type: %s", fstype)
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue