From 489d23a132a03c80c4d48e10c13b21ad2e318fb8 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Fri, 23 Oct 2015 00:00:00 -0500 Subject: [PATCH] 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 --- top/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0