From owner-cvs-src@FreeBSD.ORG Mon Jul 12 04:55:07 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC1D416A4CE; Mon, 12 Jul 2004 04:55:07 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C051843D1F; Mon, 12 Jul 2004 04:55:07 +0000 (GMT) (envelope-from alfred@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6C4t7mI000946; Mon, 12 Jul 2004 04:55:07 GMT (envelope-from alfred@repoman.freebsd.org) Received: (from alfred@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6C4t7L2000945; Mon, 12 Jul 2004 04:55:07 GMT (envelope-from alfred) Message-Id: <200407120455.i6C4t7L2000945@repoman.freebsd.org> From: Alfred Perlstein Date: Mon, 12 Jul 2004 04:55:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/top machine.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 04:55:08 -0000 alfred 2004-07-12 04:55:07 UTC FreeBSD src repository Modified files: usr.bin/top machine.c Log: Cache a pointer to the old proc (as well as negative cache) to make computing the io statistics over and over not as expensive. This is a bit of a cop out, as I should just allocate a struct with the computed values, but this will do for now. Revision Changes Path 1.65 +13 -2 src/usr.bin/top/machine.c