]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: grey out tasks limit the same way we grey out the fd store limit in the...
authorLennart Poettering <lennart@poettering.net>
Mon, 18 Nov 2024 22:26:58 +0000 (23:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Nov 2024 09:11:49 +0000 (10:11 +0100)
"systemctl status systemd-logind" otherwise looks a bit weird, since the
tasks and the fdstore lines are so close to each other but formatted
quite differently when it comes to coloring.

src/systemctl/systemctl-show.c

index 335b365be2e697a9f0a6e4b6459d98d7dc689c2e..fe35553e30c9ef7fc6bbb59d86b9989fa5493d4f 100644 (file)
@@ -724,7 +724,7 @@ static void print_status_info(
                 printf("      Tasks: %" PRIu64, i->tasks_current);
 
                 if (i->tasks_max != UINT64_MAX)
-                        printf(" (limit: %" PRIu64 ")\n", i->tasks_max);
+                        printf("%s (limit: %" PRIu64 ")%s\n", ansi_grey(), i->tasks_max, ansi_normal());
                 else
                         printf("\n");
         }