Fix openbsd syscalls

Apparently these are not int8 slices anymore

Signed-off-by: Johannes Ziemke <github@5pi.de>
This commit is contained in:
Johannes Ziemke 2022-07-19 14:35:03 +02:00 committed by Johannes 'fish' Ziemke
parent f06eb4152d
commit f4e85bef0e
1 changed files with 3 additions and 3 deletions

View File

@ -41,14 +41,14 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
stats = []filesystemStats{} stats = []filesystemStats{}
for _, v := range mnt { for _, v := range mnt {
mountpoint := int8ToString(v.F_mntonname[:]) mountpoint := string(v.F_mntonname[:])
if c.excludedMountPointsPattern.MatchString(mountpoint) { if c.excludedMountPointsPattern.MatchString(mountpoint) {
level.Debug(c.logger).Log("msg", "Ignoring mount point", "mountpoint", mountpoint) level.Debug(c.logger).Log("msg", "Ignoring mount point", "mountpoint", mountpoint)
continue continue
} }
device := int8ToString(v.F_mntfromname[:]) device := string(v.F_mntfromname[:])
fstype := int8ToString(v.F_fstypename[:]) fstype := string(v.F_fstypename[:])
if c.excludedFSTypesPattern.MatchString(fstype) { if c.excludedFSTypesPattern.MatchString(fstype) {
level.Debug(c.logger).Log("msg", "Ignoring fs type", "type", fstype) level.Debug(c.logger).Log("msg", "Ignoring fs type", "type", fstype)
continue continue