Skip to content

Commit

Permalink
Merge pull request #45 from anastop/master
Browse files Browse the repository at this point in the history
Add Update method for the cpuset controller
  • Loading branch information
crosbymichael committed Apr 4, 2018
2 parents c755602 + 15ef4c3 commit 07683a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpuset.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func (c *cpusetController) Create(path string, resources *specs.LinuxResources)
return nil
}

func (c *cpusetController) Update(path string, resources *specs.LinuxResources) error {
return c.Create(path, resources)
}

func (c *cpusetController) getValues(path string) (cpus []byte, mems []byte, err error) {
if cpus, err = ioutil.ReadFile(filepath.Join(path, "cpuset.cpus")); err != nil && !os.IsNotExist(err) {
return
Expand Down

0 comments on commit 07683a6

Please sign in to comment.