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