> The SNPRINTF implementation in used if the machine doesn´t have > "HAVE_SNPRINTF" hasn't floating point support. More: RCS file: /opt/src/cvsroot/nntpcache/src/nntpcache.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** nntpcache.c 2000/01/05 17:27:46 1.4 --- nntpcache.c 2000/01/05 19:43:46 1.5 *************** *** 434,444 **** --- 434,459 ---- times(&buffer); u = buffer.tms_utime; s = buffer.tms_stime; + /* + ** Si no tenemos HAVE_SNPRINTF + ** la libreria que tenemos no soporta coma flotante + */ + + #ifdef _0 loginn (("%s times user %.2f system %.2f elapsed %d.00", ClientHostNormal, (double) u/ CLK_TCK, (double) s/ CLK_TCK, (int)(time(NULL) - ClientTimeStarted))); + #else + loginn (("%s times user %d.%d system %d.%d elapsed %d.00", + ClientHostNormal, + (int)(u/CLK_TCK), + (int)((100*u)%CLK_TCK), + (int)(s/CLK_TCK), + (int)((100*s)%CLK_TCK), + (int)(time(NULL) - ClientTimeStarted))); + #endif } } if (Master_fd >= 0) -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ _/_/_/_/_/ PGP Key Available at KeyServ _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz