summaryrefslogtreecommitdiffstats
path: root/src/systemctl
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-18 23:26:58 +0100
committerLennart Poettering <lennart@poettering.net>2024-11-19 10:11:49 +0100
commit54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0 (patch)
tree09556a58b1ea8200e97f6f0b862282c0e2beefec /src/systemctl
parentmkosi: Enable clangd execution for all distributions (diff)
downloadsystemd-54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0.tar.xz
systemd-54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0.zip
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.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl-show.c2
1 files changed, 1 insertions, 1 deletions
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");
}