Browse Source

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>
pull/1345/head
Ben Kochie 6 years ago committed by GitHub
parent
commit
f10c665d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      collector/uname.go

2
collector/uname.go

@ -53,7 +53,7 @@ func newUnameCollector() (Collector, error) {
return &unameCollector{}, nil
}
func (c unameCollector) Update(ch chan<- prometheus.Metric) error {
func (c *unameCollector) Update(ch chan<- prometheus.Metric) error {
uname, err := getUname()
if err != nil {
return err

Loading…
Cancel
Save