From owner-cvs-all@FreeBSD.ORG Mon Mar 29 17:45:24 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3833116A4CE; Mon, 29 Mar 2004 17:45:24 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18D2243D48; Mon, 29 Mar 2004 17:45:24 -0800 (PST) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2U1jNGe035344; Mon, 29 Mar 2004 17:45:23 -0800 (PST) (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2U1jNWQ035343; Mon, 29 Mar 2004 17:45:23 -0800 (PST) (envelope-from gad) Message-Id: <200403300145.i2U1jNWQ035343@repoman.freebsd.org> From: Garance A Drosehn Date: Mon, 29 Mar 2004 17:45:23 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/ps ps.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 01:45:24 -0000 gad 2004/03/29 17:45:23 PST FreeBSD src repository Modified files: bin/ps ps.c Log: Replace pscomp() with a cleaner version, mostly written by bde (*). This corrects a problem of lost-precision for `-r' (sort-by-CPU). Also, for sort-by-CPU and sort-by-memory, any processes which have the same value CPU or MEMORY are now sorted by TTY and then (if needed) by pid. (* - I just added the NODEV checks, after doing some testing of my own) Submitted by: bde MFC after: 1 week Revision Changes Path 1.81 +42 -13 src/bin/ps/ps.c