From 7b93b520108724553d5379faa51446662adc3353 Mon Sep 17 00:00:00 2001 From: Tobias Schmidt Date: Wed, 22 Mar 2017 21:47:36 -0300 Subject: [PATCH] Fix lint issues on filesystem BSD implementation --- collector/filesystem_bsd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/filesystem_bsd.go b/collector/filesystem_bsd.go index e7eebac4..9f20ec05 100644 --- a/collector/filesystem_bsd.go +++ b/collector/filesystem_bsd.go @@ -34,7 +34,7 @@ import "C" const ( defIgnoredMountPoints = "^/(dev)($|/)" defIgnoredFSTypes = "^devfs$" - MNT_RDONLY = 0x1 + readOnly = 0x1 // MNT_RDONLY ) // Expose filesystem fullness. @@ -62,7 +62,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) { } var ro float64 - if (mnt[i].f_flags & MNT_RDONLY) != 0 { + if (mnt[i].f_flags & readOnly) != 0 { ro = 1 }