Update runc cgroup mount api
This commit is contained in:
parent
d7b530cb0a
commit
e888fcff7b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ import (
|
|||
func NumCPU() int {
|
||||
cpus := runtime.NumCPU()
|
||||
|
||||
cgroupPath, err := libcontainercgroups.FindCgroupMountpoint("cpu")
|
||||
cgroupPath, err := libcontainercgroups.FindCgroupMountpoint("", "cpu")
|
||||
if err != nil {
|
||||
return cpus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue