cvs commit: src/bin/ps ps.c ps.h
Garance A Drosehn
gad at FreeBSD.org
Sun Jun 20 14:25:11 PDT 2004
gad 2004-06-20 21:25:10 UTC
FreeBSD src repository
Modified files:
bin/ps ps.c ps.h
Log:
Have the main() routine calculate %CPU and (if needed) memory information
when copying per-process info before starting to sort the list. This way,
sort-by-CPU or sort-by-memory will only calculate values once-per-process,
instead of twice-per-comparison. Also take advantage of this to simplify
the pscomp() routine.
Revision Changes Path
1.99 +29 -36 src/bin/ps/ps.c
1.18 +2 -0 src/bin/ps/ps.h
More information about the cvs-src
mailing list