mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-31 08:27:42 -08:00
Cleanup uname Update call (#1342)
Make collector a pointer for consistency. Fixes: https://github.com/prometheus/node_exporter/issues/1300 Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
8b13c130b7
commit
f10c665d33
|
@ -53,7 +53,7 @@ func newUnameCollector() (Collector, error) {
|
||||||
return &unameCollector{}, nil
|
return &unameCollector{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c unameCollector) Update(ch chan<- prometheus.Metric) error {
|
func (c *unameCollector) Update(ch chan<- prometheus.Metric) error {
|
||||||
uname, err := getUname()
|
uname, err := getUname()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue