diff --git a/cgroups/utils.go b/cgroups/utils.go index 0d19b3ea..6fed5cf3 100644 --- a/cgroups/utils.go +++ b/cgroups/utils.go @@ -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]) } }