cvs commit: src/usr.bin/top machine.c
Stefan Esser
se at FreeBSD.org
Sun Jun 11 19:20:51 UTC 2006
se 2006-06-11 19:18:39 UTC
FreeBSD src repository
Modified files:
usr.bin/top machine.c
Log:
Fix display of idle processes, which had been broken since rev. 1.56 of
machine.c. The traditional condition was (pctcpu > 0 || SRUN), but the
negation of the condition logic (from select to skip) made this come
out as (pctcpu > 0 && SRUN), leading to a very erratic display, except
for purely CPU bound processes.
This has been discussed in the mail lists some time ago and I have used
top with this patch on my systems for more than a year without problems
(just forgot to commit it earlier, since my systems were all fixed ...).
Revision Changes Path
1.77 +2 -1 src/usr.bin/top/machine.c
More information about the cvs-src
mailing list