Fix: There is no need to wait for command completion

This commit is contained in:
Holger Obermaier
2026-02-09 13:03:23 +01:00
parent 6000a1a45b
commit f6cd593862

View File

@@ -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")
}