]> granicus.if.org Git - procps-ng/commitdiff
top: some miscellaneous accumulated tweaks and cleanup
authorJim Warner <james.warner@comcast.net>
Mon, 15 Jun 2020 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Tue, 23 Jun 2020 09:09:05 +0000 (19:09 +1000)
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>
top/top.1
top/top.c

index b38102c7ba36e06b473c9db29a2aefdf05cdbcc8..a3bff960eebfa04b6a0d29a88b0a1c8b1a281de4 100644 (file)
--- a/top/top.1
+++ b/top/top.1
@@ -64,6 +64,7 @@
 .\" ----------------------------------------------------------------------
 .TH TOP 1 "May 2020" "procps-ng" "User Commands"
 .\" ----------------------------------------------------------------------
+.nh
 
 .\" ----------------------------------------------------------------------
 .SH NAME
index 89c395756816f3b9ebe41b15eeb9affa61117aa1..fbb2f610df14fb1b42616af02602b34f7cd88d6f 100644 (file)
--- 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;