mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue