bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getloadavg on aix5


From: Jim Meyering
Subject: Re: getloadavg on aix5
Date: Mon, 21 Jan 2008 16:30:45 +0100

"Peter O'Gorman" <address@hidden> wrote:
> I seem to have lost Jim's reply, but here is a patch. Works on
> aix-4.3.3 and aix-5.3.
>
> The SBITS thing is the way the libperstat.h header recommends
> calculating the loadavg:
>
> /* To calculate the load average, divide the numbers by (1<<SBITS). SBITS is 
> defined in <sys/proc.h>. */
>
> Of course, it is not defined on aix4.3.3 ...

Thanks.  Your patch looks good.
It'd be great if you could write a ChangeLog entry.

You'd get even more karma for adding a test program to
demonstrate the fix: i.e., the program would fail on aix-5.3
when linked to the old version, yet would pass when linked
to the new getloadavg function.

Sorry about the delay.  I expect to apply your patch right
after coreutils-6.10, which is now waiting for automake-1.10.1.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]