mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 15:29:04 +01:00
Fix format of infiniband collector
This commit is contained in:
parent
cdc253b569
commit
7f1694adc7
@ -25,11 +25,11 @@ func (m *InfinibandCollector) Init() error {
|
|||||||
m.tags = map[string]string{"type": "node"}
|
m.tags = map[string]string{"type": "node"}
|
||||||
_, err := ioutil.ReadFile(string(LIDFILE))
|
_, err := ioutil.ReadFile(string(LIDFILE))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
_, err = ioutil.ReadFile(string(PERFQUERY))
|
_, err = ioutil.ReadFile(string(PERFQUERY))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
m.init = true
|
m.init = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user