try to figure out testing flags

This commit is contained in:
Nicholas Orlowsky 2023-04-25 19:24:34 -05:00
parent 3714c2c426
commit 6d96e111c8
No known key found for this signature in database
GPG key ID: 58832FD3AC16C706
4 changed files with 9 additions and 59 deletions

View file

@ -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 {