Aaron Mason wrote: > different exit value for each error condition. It's usually good > practice to send a numeric error code and let your script handle the > error itself. By all means keep the message there, but don't make it > impossible to use in a script. > > </offtopic> > > Try info->p_pctcpu instead. > u_int32_t p_pctcpu; /* FIXPT_T: %cpu for this process during p_swtime */ u_int32_t p_swtime; /* U_INT: Time swapped in or out. */
My understanding is, that pctcpu is a normalized value over swtime, which is useless for me. -- Sebastian Spies e-mail: sebastian.sp...@de-cix.net DE-CIX Management GmbH Lindleystr. 12, 60314 Frankfurt Mobile: +49 1577 7830883 Geschaeftsfuehrer Harald A. Summa Fax: +49 69 4056 2716 Registergericht AG Koeln, HRB 51135 http://www.de-cix.net Zentrale: Lichtstr. 43i, 50825 Koeln [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]