Merge pull request #114 from vmarmol/cgroups

Small fix for GetAllCgroups().
This commit is contained in:
Victor Marmol 2014-07-21 22:17:17 -07:00
commit 2d0c1a1c01
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ func GetAllSubsystems() ([]string, error) {
text := s.Text() text := s.Text()
if text[0] != '#' { if text[0] != '#' {
parts := strings.Fields(text) parts := strings.Fields(text)
if len(parts) > 4 && parts[3] != "0" { if len(parts) >= 4 && parts[3] != "0" {
subsystems = append(subsystems, parts[0]) subsystems = append(subsystems, parts[0])
} }
} }