diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-07 02:11:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-07 02:21:41 +0200 |
commit | 7e61bf2019c2cab4e1e21ee775bab25ef1a1bb81 (patch) | |
tree | 17c8664ad0b28b633390e2fb304af3c68c8edac6 /src/systemctl.c | |
parent | 455d8dc9ff39079b55a0b8f713d73ffb66e74516 (diff) |
systemctl: minor cosmetic fixes
Diffstat (limited to 'src/systemctl.c')
-rw-r--r-- | src/systemctl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index 02c8e30418..5c91c325cd 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -242,7 +242,7 @@ static int list_units(DBusConnection *bus, char **args, unsigned n) { if (job_id != 0) printf(" %-15s%n", job_type, &b); else - b = 1 + 15; + b = 1 + 16; if (a + b + 2 < columns()) { if (job_id == 0) @@ -952,8 +952,6 @@ static void show_cgroup(const char *name) { if (!f) return; - printf("\t\t \342\224\202\n"); - while (!feof(f)) { unsigned long ul; @@ -968,7 +966,8 @@ static void show_cgroup(const char *name) { get_process_cmdline(last, 60, &t); printf("\t\t \342\224\234 %lu %s\n", (unsigned long) last, strna(t)); free(t); - } + } else + printf("\t\t \342\224\202\n"); last = (pid_t) ul; } |