diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-11-18 23:26:58 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-11-19 10:11:49 +0100 |
commit | 54646b1ca95373dfa3ebe5d6e7e27deeed9e77b0 (patch) | |
tree | 09556a58b1ea8200e97f6f0b862282c0e2beefec /src/systemctl | |
parent | mkosi: Enable clangd execution for all distributions (diff) | |
download | systemd-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.c | 2 |
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"); } |