From 145c28a725a77b66130d0798962a9c46f58c095e Mon Sep 17 00:00:00 2001 From: Johannes Ziemke Date: Tue, 19 Jul 2022 14:35:03 +0200 Subject: [PATCH] Fix openbsd syscalls Apparently these are not int8 slices anymore Signed-off-by: Johannes Ziemke --- collector/filesystem_openbsd_amd64.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/collector/filesystem_openbsd_amd64.go b/collector/filesystem_openbsd_amd64.go index 448b3ef36e..75fc844053 100644 --- a/collector/filesystem_openbsd_amd64.go +++ b/collector/filesystem_openbsd_amd64.go @@ -41,14 +41,14 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) { stats = []filesystemStats{} for _, v := range mnt { - mountpoint := int8ToString(v.F_mntonname[:]) + mountpoint := string(v.F_mntonname[:]) if c.excludedMountPointsPattern.MatchString(mountpoint) { level.Debug(c.logger).Log("msg", "Ignoring mount point", "mountpoint", mountpoint) continue } - device := int8ToString(v.F_mntfromname[:]) - fstype := int8ToString(v.F_fstypename[:]) + device := string(v.F_mntfromname[:]) + fstype := string(v.F_fstypename[:]) if c.excludedFSTypesPattern.MatchString(fstype) { level.Debug(c.logger).Log("msg", "Ignoring fs type", "type", fstype) continue