From: Jim Warner Date: Fri, 23 Oct 2015 05:00:00 +0000 (-0500) Subject: top: ATEOJ_RPTHSH prints hash table entries less often X-Git-Tag: v3.3.12~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=489d23a132a03c80c4d48e10c13b21ad2e318fb8;p=procps-ng top: ATEOJ_RPTHSH prints hash table entries less often We'll following the newlib approach to hashing: . a 'PIDs at max depth:' portion of that UNREF_RPTHASH enabled #define is now published only when the maximum depth of hash table entry chains exceed depths of one. Signed-off-by: Jim Warner --- diff --git a/top/top.c b/top/top.c index 7f18ff18..2591c3ab 100644 --- a/top/top.c +++ b/top/top.c @@ -530,7 +530,7 @@ static void bye_bye (const char *str) { "\t -----\n" "\t %5d total entries occupied\n", cross_foot); - if (maxdepth_sav) { + if (maxdepth_sav > 1) { fprintf(stderr, "\nPIDs at max depth: "); for (i = 0; i < HHASH_SIZ; i++) if (depths[i] == maxdepth_sav) {