top: some miscellaneous accumulated tweaks and cleanup

I've grown to hate that man document rendering when it
comes to hyphenation. So this patch will eliminate it.

And we'll also eliminate an unnecessary initialization
in that top program code concerned with combined cpus.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner authored and Craig Small committed 2020-06-23 19:05:03 +10:00
1 parent cc032cbd99
commit e3249ebb97
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -64,6 +64,7 @@
.\" ----------------------------------------------------------------------
.TH TOP 1 "May 2020" "procps-ng" "User Commands"
.\" ----------------------------------------------------------------------
.nh
.\" ----------------------------------------------------------------------
.SH NAME
+1 -2
View File
@@ -5846,11 +5846,10 @@ static int cpu_unify (CPU_t *cpu, int nobuf) {
snprintf(pfx, sizeof(pfx), "%-7.7s:", fmtmk("%d-%d", beg, cpu->id));
n = cpu_tics(&accum, pfx, nobuf);
memset(&accum, 0, sizeof(CPU_t));
ix = beg = 0;
ix = 0;
return n;
}
++ix;
return 0;
} // end: cpu_unify