cgls: suppress output of controller name, if it's the systemd one
This commit is contained in:
+3
-1
@@ -165,8 +165,10 @@ static int get_cgroup_root(char **ret) {
|
||||
}
|
||||
|
||||
static void show_cg_info(const char *controller, const char *path) {
|
||||
if (cg_unified() <= 0)
|
||||
|
||||
if (cg_unified() <= 0 && controller && !streq(controller, SYSTEMD_CGROUP_CONTROLLER))
|
||||
printf("Controller %s; ", controller);
|
||||
|
||||
printf("Control group %s:\n", isempty(path) ? "/" : path);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user