eb83a1f821
If a hash results report is output (via UNREF_RPTHASH) a portion is devoted to occupied table entries ordered by depth. There is a possibility that some depths will not be found among existing occupied table entries and to avoid any confusion probably should not be printed. [ to illustrate the potential for confusion prior to ] [ this patch, force a very small table size (like 8) ] [ & then trigger the procps_pids_unref() eoj report. ] So this patch ensures only 'in use' entries are shown. [ admittedly, all of the remaining logic in the loop ] [ could/should be subordinate to this new 'if' test, ] [ but we will keep the change to a minimum. besides, ] [ there's no harm subtracting/adding a zero numdepth ] [ especially since the chance of a zero is very low. ] Signed-off-by: Jim Warner <james.warner@comcast.net> |
||
---|---|---|
.. | ||
.gitignore | ||
COPYING | ||
devname.c | ||
devname.h | ||
diskstats.c | ||
diskstats.h | ||
escape.c | ||
escape.h | ||
libprocps.pc.in | ||
libprocps.sym | ||
meminfo.c | ||
meminfo.h | ||
namespace.c | ||
namespace.h | ||
numa.c | ||
numa.h | ||
pids.c | ||
pids.h | ||
procps-private.h | ||
pwcache.c | ||
pwcache.h | ||
readproc.c | ||
readproc.h | ||
slabinfo.c | ||
slabinfo.h | ||
stat.c | ||
stat.h | ||
sysinfo.c | ||
sysinfo.h | ||
test_Itemtables.c | ||
test_namespace.c | ||
test_pids.c | ||
test_sysinfo.c | ||
test_uptime.c | ||
test_version.c | ||
uptime.c | ||
uptime.h | ||
version.c | ||
version.h | ||
vmstat.c | ||
vmstat.h | ||
wchan.c | ||
wchan.h | ||
xtra-procps-debug.h |