From 38537f79c7e7e9f57ade5eabf4f87849e66acc2d Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Mon, 15 Jun 2020 00:00:00 -0500 Subject: [PATCH] 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 --- top/top.1 | 1 + top/top.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/top/top.1 b/top/top.1 index b38102c7..a3bff960 100644 --- a/top/top.1 +++ b/top/top.1 @@ -64,6 +64,7 @@ .\" ---------------------------------------------------------------------- .TH TOP 1 "May 2020" "procps-ng" "User Commands" .\" ---------------------------------------------------------------------- +.nh .\" ---------------------------------------------------------------------- .SH NAME diff --git a/top/top.c b/top/top.c index 89c39575..fbb2f610 100644 --- a/top/top.c +++ b/top/top.c @@ -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))); n = cpu_tics(&accum, pfx, nobuf); memset(&stack, 0, sizeof(stack)); - ix = beg = 0; + ix = 0; return n; } ++ix;