From a177412d067f0a40f870fb8ad7c357ea15271473 Mon Sep 17 00:00:00 2001 From: James Bach Date: Fri, 16 Dec 2022 12:53:13 +0000 Subject: [PATCH] Change var name to match previous Signed-off-by: James Bach Signed-off-by: jalev --- collector/arp_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/arp_linux.go b/collector/arp_linux.go index da0a9b79..ded0cc2c 100644 --- a/collector/arp_linux.go +++ b/collector/arp_linux.go @@ -77,12 +77,12 @@ func (c *arpCollector) Update(ch chan<- prometheus.Metric) error { enumeratedEntry := getTotalArpEntries(entries) - for device, entry := range enumeratedEntry { + for device, entryCount := range enumeratedEntry { if c.deviceFilter.ignored(device) { continue } ch <- prometheus.MustNewConstMetric( - c.entries, prometheus.GaugeValue, float64(entry), device) + c.entries, prometheus.GaugeValue, float64(entryCount), device) } return nil