mirror of https://github.com/docker/docs.git
Reuse cpuacct stats for cpu subsystem
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
parent
37248039e1
commit
3bfe13de2c
|
@ -27,5 +27,7 @@ func (s *cpuGroup) Remove(d *data) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *cpuGroup) Stats(d *data) (map[string]float64, 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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue