mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-05 13:15:55 +02:00
small fix
This commit is contained in:
parent
abaffa6336
commit
c6ea26228d
@ -98,7 +98,7 @@ func (m *NetstatCollector) Init(config json.RawMessage) error {
|
||||
m.buildAliasMapping()
|
||||
|
||||
// Check access to net statistic file
|
||||
file, err := os.Open(string(NETSTATFILE))
|
||||
file, err := os.Open(NETSTATFILE)
|
||||
if err != nil {
|
||||
cclog.ComponentError(m.name, err.Error())
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user