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-15 00:00:00 -05:00 committed by Craig Small
parent 8b4228fe71
commit 38537f79c7
2 changed files with 2 additions and 1 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

@ -5422,7 +5422,7 @@ static int cpu_unify (struct stat_stack *this, int nobuf) {
snprintf(pfx, sizeof(pfx), "%-7.7s:", fmtmk("%d-%d", beg, rSv(stat_ID, s_int))); snprintf(pfx, sizeof(pfx), "%-7.7s:", fmtmk("%d-%d", beg, rSv(stat_ID, s_int)));
n = cpu_tics(&accum, pfx, nobuf); n = cpu_tics(&accum, pfx, nobuf);
memset(&stack, 0, sizeof(stack)); memset(&stack, 0, sizeof(stack));
ix = beg = 0; ix = 0;
return n; return n;
} }
++ix; ++ix;