mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-02-02 08:42:31 -08:00
ethtool-linux: fix entry function
Signed-off-by: t-falconnet <tfalconnet.externe@bedrockstreaming.com>
This commit is contained in:
parent
db87173be0
commit
5c8407b772
|
@ -446,7 +446,7 @@ func (c *ethtoolCollector) entryWithCreate(key, metricFQName string) *prometheus
|
||||||
return c.entries[key]
|
return c.entries[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ethtoolCollector) entry(key) *prometheus.Desc {
|
func (c *ethtoolCollector) entry(key string) *prometheus.Desc {
|
||||||
c.entriesMutex.Lock()
|
c.entriesMutex.Lock()
|
||||||
defer c.entriesMutex.Unlock()
|
defer c.entriesMutex.Unlock()
|
||||||
return c.entries[key]
|
return c.entries[key]
|
||||||
|
|
Loading…
Reference in a new issue