aboutsummaryrefslogtreecommitdiff
path: root/collector/filesystem_freebsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'collector/filesystem_freebsd.go')
-rw-r--r--collector/filesystem_freebsd.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/collector/filesystem_freebsd.go b/collector/filesystem_freebsd.go
index f37029e..1d377b1 100644
--- a/collector/filesystem_freebsd.go
+++ b/collector/filesystem_freebsd.go
@@ -40,14 +40,14 @@ func (c *filesystemCollector) GetStats() ([]filesystemStats, error) {
40 } 40 }
41 stats := []filesystemStats{} 41 stats := []filesystemStats{}
42 for _, fs := range buf { 42 for _, fs := range buf {
43 mountpoint := string(fs.Mntonname[:]) 43 mountpoint := bytesToString(fs.Mntonname[:])
44 if c.ignoredMountPointsPattern.MatchString(mountpoint) { 44 if c.ignoredMountPointsPattern.MatchString(mountpoint) {
45 level.Debug(c.logger).Log("msg", "Ignoring mount point", "mountpoint", mountpoint) 45 level.Debug(c.logger).Log("msg", "Ignoring mount point", "mountpoint", mountpoint)
46 continue 46 continue
47 } 47 }
48 48
49 device := string(fs.Mntfromname[:]) 49 device := bytesToString(fs.Mntfromname[:])
50 fstype := string(fs.Fstypename[:]) 50 fstype := bytesToString(fs.Fstypename[:])
51 if c.ignoredFSTypesPattern.MatchString(fstype) { 51 if c.ignoredFSTypesPattern.MatchString(fstype) {
52 level.Debug(c.logger).Log("msg", "Ignoring fs type", "type", fstype) 52 level.Debug(c.logger).Log("msg", "Ignoring fs type", "type", fstype)
53 continue 53 continue