1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Timing fix in the default busy handler. (CVS 2456)

FossilOrigin-Name: 76090ed84c73a9b9c7099e2986390ca8967128f4
This commit is contained in:
drh
2005-05-06 22:05:56 +00:00
parent 8d97f1f141
commit 68cb6192c1
3 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.286 2005/04/28 12:06:06 drh Exp $
** $Id: main.c,v 1.287 2005/05/06 22:05:57 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -632,7 +632,7 @@ static int sqliteDefaultBusyCallback(
prior = totals[count];
}else{
delay = delays[NDELAY-1];
prior = totals[NDELAY-1] + delay*(count-NDELAY-1);
prior = totals[NDELAY-1] + delay*(count-(NDELAY-1));
}
if( prior + delay > timeout ){
delay = timeout - prior;