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 2020-06-16 00:00:00 -05:00 committed by Craig Small
parent cc032cbd99
commit e3249ebb97
2 changed files with 2 additions and 2 deletions

View File

@ -64,6 +64,7 @@
.\" ---------------------------------------------------------------------- .\" ----------------------------------------------------------------------
.TH TOP 1 "May 2020" "procps-ng" "User Commands" .TH TOP 1 "May 2020" "procps-ng" "User Commands"
.\" ---------------------------------------------------------------------- .\" ----------------------------------------------------------------------
.nh
.\" ---------------------------------------------------------------------- .\" ----------------------------------------------------------------------
.SH NAME .SH NAME

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)); snprintf(pfx, sizeof(pfx), "%-7.7s:", fmtmk("%d-%d", beg, cpu->id));
n = cpu_tics(&accum, pfx, nobuf); n = cpu_tics(&accum, pfx, nobuf);
memset(&accum, 0, sizeof(CPU_t)); memset(&accum, 0, sizeof(CPU_t));
ix = beg = 0; ix = 0;
return n; return n;
} }
++ix; ++ix;
return 0; return 0;
} // end: cpu_unify } // end: cpu_unify