Re: getloadavg on aix5

2008-02-05 Thread Jim Meyering
Peter O'Gorman <[EMAIL PROTECTED]> wrote: ... > This works (tested on aix4.3.3, aix5.1, 5.2 and 5.3). Thanks. I've pushed the result.

Re: getloadavg on aix5

2008-02-05 Thread Peter O'Gorman
Jim Meyering wrote: > "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, divid

Re: getloadavg on aix5

2008-02-04 Thread Jim Meyering
"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< defined

Re: getloadavg on aix5

2008-01-21 Thread Jim Meyering
"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< defined

Re: getloadavg on aix5

2008-01-21 Thread Peter O'Gorman
On Mon, Jan 07, 2008 at 09:52:33PM -0600, Peter O'Gorman wrote: > I seem to have lost Jim's reply, but here is a patch. Works on > aix-4.3.3 and aix-5.3. Hi, ping? http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00068.html Peter

Re: getloadavg on aix5

2008-01-07 Thread Peter O'Gorman
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<. */ Of course, it is not defined on aix4.3.3 ... Peter diff --

Re: getloadavg on aix5

2008-01-07 Thread Jim Meyering
"Peter O'Gorman" <[EMAIL PROTECTED]> wrote: > While getloadavg works ok on aix4, it returns incorrect results on > aix5. > > Why do we not use libperfstat on aix? > http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.basetechref/doc/basetrf1/perfstat_cputot.htm > It has the adva

getloadavg on aix5

2008-01-07 Thread Peter O'Gorman
Hi, While getloadavg works ok on aix4, it returns incorrect results on aix5. Why do we not use libperfstat on aix? http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.basetechref/doc/basetrf1/perfstat_cputot.htm It has the advantage of not requiring root privs to get the load