Skip to content

Commit

Permalink
feat: linux control group version 2 API support cgroup v2 (aws-greeng…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangxinDong committed Oct 10, 2022
1 parent 4f9c07d commit 58f35a4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
import java.nio.file.Paths;

public class LinuxPlatform extends UnixPlatform {
private static final String CGROUP_ROOT = "/sys/fs/cgroup";
private static final String CGROUP_CONTROLLERS = "cgroup.controllers";
private static final String CGROUP_CONTROLLERS = "/sys/fs/cgroup/cgroup.controllers";

SystemResourceController systemResourceController;

Expand All @@ -31,6 +30,6 @@ public SystemResourceController getSystemResourceController() {
}

private Path getControllersRootPath() {
return Paths.get(CGROUP_ROOT).resolve(CGROUP_CONTROLLERS);
return Paths.get(CGROUP_CONTROLLERS);
}
}

0 comments on commit 58f35a4

Please sign in to comment.