From owner-freebsd-questions Tue Sep 28 18:29:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 7889E1587E for ; Tue, 28 Sep 1999 18:29:53 -0700 (PDT) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id UAA06692; Tue, 28 Sep 1999 20:29:50 -0500 (CDT) Date: Tue, 28 Sep 1999 20:29:50 -0500 (CDT) From: Steve Price To: James Snow Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Weird segfault In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 28 Sep 1999, James Snow wrote: [snip] # int loadavg() { # double avg[2]; ^ Shouldn't this be 3? # if ((getloadavg(avg, 3)) == -1) ^ Or this be 2? # return printf("Not available\n"); # # return printf("%.2f %.2f %.2f\n", avg[0], avg[1], avg[2]); # } [snip] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message