From f7538e8222b1c4530b3466ef684b517999afe756 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. (cherry picked from commit 54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0) (cherry picked from commit ff4b66be4a35fd21ef001bbf6492e3e1f837ee1c) (cherry picked from commit e00cc22e30b61b3e2e6b50bea3c569dd7c48c42d) (cherry picked from commit e9179d051ad431e868c28b1daea0cacbcf2c21ab) --- 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 a01e3f3410..f2ae04acc2 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -692,7 +692,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"); }