procps/proc
Jim Warner c082779769 library: fix an insidious bug affecting TICS_ALL_DELTA
This simple two line code change fixes an intermittent
bug whereby %CPU for parent(s) with collapsed children
could be vastly understated from those displayed under
the current 3.3.17 publicly available top & libprocps.

If one started several top instances in the background
using very a small delay interval (zero?), then if the
shell under which they were running was collapsed, you
would see similar %CPU results for both the libraries.

However, when running a demanding 'make' like a kernel
compile (especially if backed by fast processors and a
SSD), then newlib would generally show only 1/3 to 1/2
of the collapsed %CPU values that appeared for 3.3.17.

Of course, now that the bug has been swatted with this
commit the disparities between those results is easily
explained. Since newly created tasks never contributed
tics during the interval where they were created, only
with many short lived tasks would differences surface.

Signed-off-by: Jim Warner <james.warner@comcast.net>
2021-04-24 11:11:03 +10:00
..
.gitignore
COPYING
devname.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
devname.h
diskstats.c library: normalized 'extents_free_all' use across APIs 2021-02-18 18:35:32 +11:00
diskstats.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
escape.c library: reduce overhead for another 'escape' function 2021-01-21 17:30:24 +11:00
escape.h library: refactor 'escape' logic for newlib essentials 2020-12-29 08:48:23 +11:00
libproc-2.pc.in library: Rename to libproc-2 2021-02-20 22:30:31 +11:00
libproc-2.sym library: Rename to libproc-2 2021-02-20 22:30:31 +11:00
meminfo.c library: tweaked key used in hash table, <meminfo> api 2021-02-28 21:18:26 +11:00
meminfo.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
misc.h misc: Update Craig's email 2021-01-21 17:37:48 +11:00
namespace.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
numa.c
numa.h
pids.c library: fix an insidious bug affecting TICS_ALL_DELTA 2021-04-24 11:11:03 +10:00
pids.h library: lessen chance of distortion on TICS_ALL_DELTA 2021-04-24 11:11:03 +10:00
procps-private.h library: eliminate unused 'FUNCTION' in private header 2020-09-13 10:00:49 +10:00
pwcache.c
pwcache.h
readproc.c library: tweak 'other' user/group names for efficiency 2021-02-09 16:40:52 +11:00
readproc.h library: eliminate a useless conditional in readproc.h 2021-02-23 22:07:48 +11:00
slabinfo.c library: normalized 'extents_free_all' use across APIs 2021-02-18 18:35:32 +11:00
slabinfo.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
stat.c library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
stat.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
sysinfo.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
test_Itemtables.c build-sys: proper fix for the 'test_Itemtables' module 2020-08-18 10:19:53 +10:00
test_namespace.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
test_pids.c
test_sysinfo.c all: make buildable again for new 'misc.h' header file 2021-01-21 17:30:25 +11:00
test_uptime.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
test_version.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
uptime.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
version.c misc: Update Craig's email 2021-01-21 17:37:48 +11:00
vmstat.c library: normalized the 'read_failed' guys across APIs 2021-02-28 21:18:26 +11:00
vmstat.h library: update those source files for copyright dates 2021-02-09 16:40:52 +11:00
wchan.c
wchan.h
xtra-procps-debug.h