From 50884d2c98d5360ed3756a1019b8e3efd5f6fdb4 Mon Sep 17 00:00:00 2001 From: Conall O'Brien Date: Wed, 4 Oct 2023 15:54:50 +0100 Subject: [PATCH] Fix inconsistent variable name, to address compilation issue https://github.com/prometheus/node_exporter/issues/2819 Signed-off-by: Conall O'Brien --- collector/zfs_freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/zfs_freebsd.go b/collector/zfs_freebsd.go index 38379039d6..0e4d969275 100644 --- a/collector/zfs_freebsd.go +++ b/collector/zfs_freebsd.go @@ -327,7 +327,7 @@ func (c *zfsCollector) parseFreeBSDPoolObjsetStats() error { "nunlinked", "nunlinks", "nread", "reads", "nwritten", "writes", } zfsPoolMibPrefix := "kstat.zfs.pool.dataset" - zfsDatasetsNames := []string{} + zfsDatasetNames := []string{} zfsDatasets, err := unix.Sysctl(zfsPoolMibPrefix) if err != nil {