diff --git a/core/stat/internal/cgroup_linux.go b/core/stat/internal/cgroup_linux.go index a2dff6b8..73659129 100644 --- a/core/stat/internal/cgroup_linux.go +++ b/core/stat/internal/cgroup_linux.go @@ -92,11 +92,12 @@ func currentCgroup() (*cgroup, error) { continue } - cgroups[subsys] = path.Join(cgroupDir, subsys) if strings.Contains(subsys, ",") { for _, k := range strings.Split(subsys, ",") { cgroups[k] = path.Join(cgroupDir, k) } + } else { + cgroups[subsys] = path.Join(cgroupDir, subsys) } }