Reuse cpuacct stats for cpu subsystem

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Upstream-commit: 3bfe13de2c38fda5b57e2499f474da701495c5ba
Component: engine
This commit is contained in:
Michael Crosby
2014-04-20 18:20:44 -07:00
parent 2f3e3558eb
commit a0be7fcb46
+3 -1
View File
@@ -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)
}