From: Florian G. <re...@us...> - 2007-04-19 23:44:15
|
Update of /cvsroot/perfparse/_perfparse/db_tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11772/db_tools Modified Files: convert.c Log Message: cosmetics Index: convert.c =================================================================== RCS file: /cvsroot/perfparse/_perfparse/db_tools/convert.c,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** convert.c 19 Apr 2007 23:09:12 -0000 1.34 --- convert.c 19 Apr 2007 23:44:14 -0000 1.35 *************** *** 836,840 **** int eh=0, emin=0, esec=0; esec=acttime-starttime; ! sec=round(iODBnumrows/i*esec); if(sec>60) { min=floor(sec/60); --- 836,840 ---- int eh=0, emin=0, esec=0; esec=acttime-starttime; ! sec=round(((float)iODBnumrows / (float)i - 1.0) * (float)esec); if(sec>60) { min=floor(sec/60); *************** *** 876,880 **** dbtool_mysql_query(gsNDBSql->str, &db_mysql_new, query_result_new); } ! if((starttime-time(NULL))%600==0) { printw(_("Sleeping 15 Sec.")); sleep(15); --- 876,880 ---- dbtool_mysql_query(gsNDBSql->str, &db_mysql_new, query_result_new); } ! if((starttime-time(NULL))%300==0) { printw(_("Sleeping 15 Sec.")); sleep(15); |