mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-11-04 14:49:53 +08:00
Fix typo for cpuacct
This commit is contained in:
parent
6d71f9dc4b
commit
928a0a4631
@ -68,7 +68,7 @@ func (b *Builder) Build() (cg *Cgroup, err error) {
|
|||||||
|
|
||||||
// AddProc writes cgroup.procs to all sub-cgroup
|
// AddProc writes cgroup.procs to all sub-cgroup
|
||||||
func (c *Cgroup) AddProc(pid int) error {
|
func (c *Cgroup) AddProc(pid int) error {
|
||||||
for _, s := range []*SubCgroup{c.cpuset, c.cpuset, c.memory, c.pids} {
|
for _, s := range []*SubCgroup{c.cpuset, c.cpuacct, c.memory, c.pids} {
|
||||||
if err := s.WriteUint(cgroupProcs, uint64(pid)); err != nil {
|
if err := s.WriteUint(cgroupProcs, uint64(pid)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user