From: Lennart Poettering Date: Mon, 18 Nov 2024 22:26:58 +0000 (+0100) Subject: systemctl: grey out tasks limit the same way we grey out the fd store limit in the... X-Git-Tag: v257-rc3~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 335b365be2e..fe35553e30c 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"); }