"Peter O'Gorman" <[EMAIL PROTECTED]> 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.
