zfs: make zfsPoolStatesName an array

Code does not modify zfsPoolStatesName slice, so make it an array.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
This commit is contained in:
Daniel Swarbrick 2024-05-12 18:27:58 +02:00 committed by Johannes 'fish' Ziemke
parent 8ea822f67a
commit b2dfaeb146

View file

@ -46,7 +46,7 @@ const (
var ( var (
errZFSNotAvailable = errors.New("ZFS / ZFS statistics are not available") errZFSNotAvailable = errors.New("ZFS / ZFS statistics are not available")
zfsPoolStatesName = []string{"online", "degraded", "faulted", "offline", "removed", "unavail", "suspended"} zfsPoolStatesName = [...]string{"online", "degraded", "faulted", "offline", "removed", "unavail", "suspended"}
) )
type zfsCollector struct { type zfsCollector struct {