diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2018-06-24 13:14:04 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2018-06-24 13:14:04 +0000 |
commit | 8d3f65e7673045c0d2f828bec00a0bab94b8af20 (patch) | |
tree | 38f3e0156b01ac424c0ce186eb1c7345942d1a96 /usr.bin | |
parent | a3d799fbb5f10466686444513c090fc731387061 (diff) | |
download | src-test2-8d3f65e7673045c0d2f828bec00a0bab94b8af20.tar.gz src-test2-8d3f65e7673045c0d2f828bec00a0bab94b8af20.zip |
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/top/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 5dfd68bdfe4c..8617a2fbd26f 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -398,7 +398,7 @@ format_header(const char *uname_field) sbuf_cat(header, "C "); } sbuf_cat(header, "TIME "); - sbuf_printf(header, "%6s ", ps.wcpu ? "WCPU" : "CPU"); + sbuf_printf(header, " %6s ", ps.wcpu ? "WCPU" : "CPU"); sbuf_cat(header, "COMMAND"); sbuf_finish(header); break; @@ -1084,7 +1084,7 @@ format_next_process(struct handle * xhandle, char *(*get_userid)(int), int flags } sbuf_printf(procbuf, "%3d ", cpu); } - sbuf_printf(procbuf, "%6s", format_time(cputime)); + sbuf_printf(procbuf, "%6s ", format_time(cputime)); sbuf_printf(procbuf, "%6.2f%% ", ps.wcpu ? 100.0 * weighted_cpu(PCTCPU(pp), pp) : 100.0 * PCTCPU(pp)); } sbuf_printf(procbuf, "%.*s", |