aboutsummaryrefslogtreecommitdiff
path: root/collector/arp_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'collector/arp_linux.go')
-rw-r--r--collector/arp_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/collector/arp_linux.go b/collector/arp_linux.go
index 6a18879..86cb78a 100644
--- a/collector/arp_linux.go
+++ b/collector/arp_linux.go
@@ -84,7 +84,7 @@ func parseARPEntries(data io.Reader) (map[string]uint32, error) {
84 } 84 }
85 85
86 if err := scanner.Err(); err != nil { 86 if err := scanner.Err(); err != nil {
87 return nil, fmt.Errorf("failed to parse ARP info: %s", err) 87 return nil, fmt.Errorf("failed to parse ARP info: %w", err)
88 } 88 }
89 89
90 return entries, nil 90 return entries, nil
@@ -93,7 +93,7 @@ func parseARPEntries(data io.Reader) (map[string]uint32, error) {
93func (c *arpCollector) Update(ch chan<- prometheus.Metric) error { 93func (c *arpCollector) Update(ch chan<- prometheus.Metric) error {
94 entries, err := getARPEntries() 94 entries, err := getARPEntries()
95 if err != nil { 95 if err != nil {
96 return fmt.Errorf("could not get ARP entries: %s", err) 96 return fmt.Errorf("could not get ARP entries: %w", err)
97 } 97 }
98 98
99 for device, entryCount := range entries { 99 for device, entryCount := range entries {