mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 15:29:04 +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 {
|
if err == nil {
|
||||||
m.init = true
|
m.init = true
|
||||||
}
|
}
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MemstatCollector) Read(interval time.Duration, out *[]lp.MutableMetric) {
|
func (m *MemstatCollector) Read(interval time.Duration, out *[]lp.MutableMetric) {
|
||||||
|
Loading…
Reference in New Issue
Block a user