From: Florian G. <re...@us...> - 2007-08-08 22:19:49
|
Update of /cvsroot/perfparse/_perfparse/db_tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27673/db_tools Modified Files: convert.c Log Message: Replace round() with rint(). Hopefully this will fix compile problems on Solaris Index: convert.c =================================================================== RCS file: /cvsroot/perfparse/_perfparse/db_tools/convert.c,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** convert.c 2 Aug 2007 22:20:21 -0000 1.38 --- convert.c 8 Aug 2007 22:19:17 -0000 1.39 *************** *** 878,882 **** int eh=0, emin=0, esec=0; esec=acttime-starttime; ! sec=floor((((float)iODBnumrows / (float)i - 1.0) * (float)esec)+0.5); if(sec>60) { min=floor(sec/60); --- 878,882 ---- int eh=0, emin=0, esec=0; esec=acttime-starttime; ! sec=rint(((float)iODBnumrows / (float)i - 1.0) * (float)esec); if(sec>60) { min=floor(sec/60); |