Return proper error for init() of memstat collector

This commit is contained in:
Thomas Roehl 2021-10-08 13:27:15 +02:00
parent 1762e33c36
commit cdc253b569

View File

@ -38,7 +38,7 @@ func (m *MemstatCollector) Init() error {
if err == nil {
m.init = true
}
return nil
return err
}
func (m *MemstatCollector) Read(interval time.Duration, out *[]lp.MutableMetric) {