Hi,
I wrote small tools for analyzing the /var/adm/pacct file, but I have a
problem. How can I convert the comp_t numbers into usual float numbers?
In /usr/include/sys/acct.h,
/*
* Accounting structures;
* these use a comp_t type which is a 3 bits base 8
* exponent, 13 bit fraction ``floating point'' number.
*/
typedef u_short comp_t;
struct acct
{
.....
comp_t ac_utime; /* Accounting user time */
comp_t ac_stime; /* Accounting system time */
comp_t ac_etime; /* Accounting elapsed time */
.....
Surely it seems that comp_t is not unsigned_short..Quote:};
thanks in advance,
WG
+-------------------------------+------------------------------------------
+-------------------------------+------------------------------------------
| Nonlinear and Complex Systems Laboratory, |
| Department of Physics, |
| Pohang University of Science and Technology. |
+--------------------------------------------------------------------------
| Sci. Bldg. 3 - 317A, (Tel) 0562-279-5842 (FAX) 0562-279-3099 |
+--------------------------------------------------------------------------