Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 1999 20:29:50 -0500 (CDT)
From:      Steve Price <sprice@hiwaay.net>
To:        James Snow <sno@teardrop.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Weird segfault
Message-ID:  <Pine.OSF.4.10.9909282027170.23202-100000@fly.HiWAAY.net>
In-Reply-To: <Pine.BSF.3.96.990928211524.52235A-100000@silver.teardrop.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.10.9909282027170.23202-100000>