Merge pull request #114 from vmarmol/cgroups
Small fix for GetAllCgroups().
This commit is contained in:
commit
2d0c1a1c01
|
@ -97,7 +97,7 @@ func GetAllSubsystems() ([]string, error) {
|
|||
text := s.Text()
|
||||
if text[0] != '#' {
|
||||
parts := strings.Fields(text)
|
||||
if len(parts) > 4 && parts[3] != "0" {
|
||||
if len(parts) >= 4 && parts[3] != "0" {
|
||||
subsystems = append(subsystems, parts[0])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue