top: ATEOJ_RPTHSH prints hash table entries less often

We'll following the newlib <pids> 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 <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2015-10-23 00:00:00 -05:00 committed by Craig Small
parent e1cd74eec9
commit 489d23a132

View File

@ -530,7 +530,7 @@ static void bye_bye (const char *str) {
"\t -----\n" "\t -----\n"
"\t %5d total entries occupied\n", cross_foot); "\t %5d total entries occupied\n", cross_foot);
if (maxdepth_sav) { if (maxdepth_sav > 1) {
fprintf(stderr, "\nPIDs at max depth: "); fprintf(stderr, "\nPIDs at max depth: ");
for (i = 0; i < HHASH_SIZ; i++) for (i = 0; i < HHASH_SIZ; i++)
if (depths[i] == maxdepth_sav) { if (depths[i] == maxdepth_sav) {