From owner-cvs-all Tue Feb 27 9:11:24 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8AC1737B718; Tue, 27 Feb 2001 09:11:19 -0800 (PST) (envelope-from gallatin@FreeBSD.org) Received: (from gallatin@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1RHBJx01512; Tue, 27 Feb 2001 09:11:19 -0800 (PST) (envelope-from gallatin) Message-Id: <200102271711.f1RHBJx01512@freefall.freebsd.org> From: Andrew Gallatin Date: Tue, 27 Feb 2001 09:11:19 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/top machine.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG gallatin 2001/02/27 09:11:19 PST Modified files: usr.bin/top machine.c Log: - An array of 4 32-bit ints for avenrun doesn't work on the alpha because fscale is a (64-bit) long. So just use a struct loadavg. This fixes the recent failure of top on alphas: top: sysctl(vm.loadavg...) failed: Cannot allocate memory - use size_t for sizeof() so as to fix a few int/long warnings on alpha Reviewed by: Thomas Moestl Revision Changes Path 1.38 +8 -16 src/usr.bin/top/machine.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message