Date: Sun, 11 Jun 2006 19:18:39 +0000 (UTC) From: Stefan Esser <se@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/top machine.c Message-ID: <200606111918.k5BJIdTN051759@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606111918.k5BJIdTN051759>
