]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgls: visually separate processes from cgroups
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Nov 2019 16:44:54 +0000 (17:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Nov 2019 16:51:28 +0000 (17:51 +0100)
Let's show them in grey, since we generally want to focus on showing the
cgroups much less than the processes in them.

src/shared/cgroup-show.c

index e07825e21ec6dcd98e7e8caf1af8568099abc4ce..208d27df1a3a2fb527ec4e9724014429b9f01707 100644 (file)
@@ -71,7 +71,7 @@ static void show_pid_array(
                 else
                         printf("%s%s", prefix, special_glyph(((more || i < n_pids-1) ? SPECIAL_GLYPH_TREE_BRANCH : SPECIAL_GLYPH_TREE_RIGHT)));
 
-                printf("%*"PID_PRI" %s\n", pid_width, pids[i], strna(t));
+                printf("%s%*"PID_PRI" %s%s\n", ansi_grey(), pid_width, pids[i], strna(t), ansi_normal());
         }
 }