We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcd0bca + 46d9229 commit 474049bCopy full SHA for 474049b
1 file changed
cgroup2/manager.go
@@ -96,7 +96,9 @@ func (r *Resources) Values() (o []Value) {
96
func (r *Resources) EnabledControllers() (c []string) {
97
if r.CPU != nil {
98
c = append(c, "cpu")
99
- c = append(c, "cpuset")
+ if r.CPU.Cpus != "" || r.CPU.Mems != "" {
100
+ c = append(c, "cpuset")
101
+ }
102
}
103
if r.Memory != nil {
104
c = append(c, "memory")
0 commit comments