try to figure out testing flags
This commit is contained in:
parent
3714c2c426
commit
6d96e111c8
4 changed files with 9 additions and 59 deletions
|
|
@ -60,6 +60,10 @@ 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