From c6ea26228dee88ecfdf79223c836a88c0ee4d255 Mon Sep 17 00:00:00 2001 From: exterr2f Date: Tue, 18 Feb 2025 21:54:30 +0100 Subject: [PATCH] small fix --- collectors/netstatMetric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/netstatMetric.go b/collectors/netstatMetric.go index 117b894..4cff5d8 100644 --- a/collectors/netstatMetric.go +++ b/collectors/netstatMetric.go @@ -98,7 +98,7 @@ func (m *NetstatCollector) Init(config json.RawMessage) error { m.buildAliasMapping() // Check access to net statistic file - file, err := os.Open(string(NETSTATFILE)) + file, err := os.Open(NETSTATFILE) if err != nil { cclog.ComponentError(m.name, err.Error()) return err