removed e2e tests for cgroups2 and associated functions
This commit is contained in:
parent
475adf734a
commit
c5dad5e461
5 changed files with 21 additions and 137 deletions
|
|
@ -60,10 +60,6 @@ func NumCPU() int {
|
|||
return int(math.Ceil(float64(cpuQuota) / float64(cpuPeriod)))
|
||||
}
|
||||
|
||||
func IsCgroupAvaliable() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func getCgroupVersion() int64 {
|
||||
// /sys/fs/cgroup/cgroup.controllers will not exist with cgroupsv1
|
||||
if _, err := os.Stat("/sys/fs/cgroup/cgroup.controllers"); err == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue