From 54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 18 Nov 2024 23:26:58 +0100 Subject: [PATCH] systemctl: grey out tasks limit the same way we grey out the fd store limit in the output "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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 335b365be2..fe35553e30 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -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"); } -- 2.25.1