From 88c7f513aae40a7afaca349dd9c410681c42b091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sun, 3 Nov 2024 19:15:29 +0100 Subject: [PATCH] cpu: implement int32 counter for PDH calls as well. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto Kröpke --- internal/perfdata/perfdata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/perfdata/perfdata.go b/internal/perfdata/perfdata.go index 05d93de5c..9d56c0bbf 100644 --- a/internal/perfdata/perfdata.go +++ b/internal/perfdata/perfdata.go @@ -27,7 +27,7 @@ var ( AllInstances = []string{"*"} ) -func NewCollector(engine Engine, object string, instances []string, counters []string) (Collector, error) { +func NewCollector(engine Engine, object string, instances []string, counters []string) (Collector, error) { //nolint:ireturn switch engine { case V1: return v1.NewCollector(object, instances, counters)