diff --git a/collectors/lustreMetric.go b/collectors/lustreMetric.go index 964d163..23bf9ae 100644 --- a/collectors/lustreMetric.go +++ b/collectors/lustreMetric.go @@ -62,7 +62,6 @@ func (m *LustreCollector) getDeviceDataCommand(device string) []string { } else { command = exec.Command(m.lctl, LCTL_OPTION, statsfile) } - command.Wait() stdout, _ := command.Output() return strings.Split(string(stdout), "\n") }