From owner-freebsd-hackers Fri Feb 25 11:25:54 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.218.96.75]) by hub.freebsd.org (Postfix) with ESMTP id 95B4937BAC7 for ; Fri, 25 Feb 2000 11:25:49 -0800 (PST) (envelope-from jim@thehousleys.net) Received: from baby.int.thehousleys.net (baby.int.thehousleys.net [192.168.0.24]) by thehousleys.net (8.9.3/8.9.3) with ESMTP id OAA36326 for ; Fri, 25 Feb 2000 14:25:47 -0500 (EST) Received: from thehousleys.net (localhost [127.0.0.1]) by baby.int.thehousleys.net (8.9.3/8.9.3) with ESMTP id OAA01735 for ; Fri, 25 Feb 2000 14:25:46 -0500 (EST) (envelope-from jim@thehousleys.net) Message-ID: <38B6D73A.9C13F02C@thehousleys.net> Date: Fri, 25 Feb 2000 14:25:46 -0500 From: James Housley Organization: The Housleys dot Net X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Finding percent idle Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am trying to find out the current % idle of the machine from within a program. I have looked at the valuse provided by sysctl and found loadavg but not system idle. I have also looked through the source for top and haven't been able to figure that out. All pointers would be appreciated. Jim -- microsoft: "where do you want to go today?" linux: "where do you want to go tomorrow?" BSD: "are you guys coming, or what?" Unix is like a wigwam -- no Gates, no Windows, and an Apache inside. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message