🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7388

Re: Compiling INN

#7388
From: Waldi Ravens
Date: Wed, 08 May 1996 00:00
26 lines
986 bytes
Brent O'Keeffe <Brent.OKeeffe@enmu.edu> wrote:
> I would still like to find the correct patch here, since this is only a
> minor workaround.

Some systems (e.g. 4.[34]BSD) provide the getloadavg() function:

#include <stdlib.h>

int
GetLoadAverage()
{
	double avenrun;

	if (getloadavg(&avenrun, 1) != 1)
		return -1;
	return (int)(avenrun + 0.5);
}


Regards,
Waldi
-- 
Never let your schooling interfere with your education.

Technical Details
Message-ID: <4moj30$d00@moacs11.moacs.indiv.nl.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4mnndc$6eh@sahara.enmu.edu>

Show Full Headers
Complete Article Headers
Message-ID: <4moj30$d00@moacs11.moacs.indiv.nl.net>
Subject: Re: Compiling INN
Date: Wed, 08 May 1996 00:00:00 +0000
From: waldi@moacs.indiv.nl.net (Waldi Ravens)
References: <4mnndc$6eh@sahara.enmu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 153663951
Organization: Private Site, Baarn
Newsgroups: news.software.nntp