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
3bd149f766
commit
e09e819712
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) {
|
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
Add a link
Reference in a new issue