mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Return proper error for init() of memstat collector
This commit is contained in:
parent
1762e33c36
commit
cdc253b569
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user