diff --git a/pkg/cgroups/fs/cpu.go b/pkg/cgroups/fs/cpu.go index 5534443412..8eb0c4ff46 100644 --- a/pkg/cgroups/fs/cpu.go +++ b/pkg/cgroups/fs/cpu.go @@ -27,5 +27,7 @@ func (s *cpuGroup) Remove(d *data) error { } func (s *cpuGroup) Stats(d *data) (map[string]float64, error) { - return nil, ErrNotSupportStat + // we can reuse the cpuacct subsystem to get the cpu stats + sys := subsystems["cpuacct"] + return sys.Stats(d) }