From e3249ebb97853fc829feebf80127af6530c41975 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 16 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 | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/top/top.1 b/top/top.1 index 7f19f601..0096f904 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 9c6f869e..9ac3a454 100644 --- a/top/top.c +++ b/top/top.c @@ -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