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 {
|
func NumCPU() int {
|
||||||
cpus := runtime.NumCPU()
|
cpus := runtime.NumCPU()
|
||||||
|
|
||||||
cgroupPath, err := libcontainercgroups.FindCgroupMountpoint("cpu")
|
cgroupPath, err := libcontainercgroups.FindCgroupMountpoint("", "cpu")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return cpus
|
return cpus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue