1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix an incorrect VFS version number check in the threadtest3.c test program.

FossilOrigin-Name: 5bf6442bec83977006bc5049adcdbd4dd39369fe
This commit is contained in:
drh
2016-01-19 21:36:26 +00:00
parent b8763639bb
commit e40cf40c1a
3 changed files with 8 additions and 8 deletions

View File

@ -880,7 +880,7 @@ static double currentTime(void){
double t;
static sqlite3_vfs *pTimelimitVfs = 0;
if( pTimelimitVfs==0 ) pTimelimitVfs = sqlite3_vfs_find(0);
if( pTimelimitVfs->iVersion>=1 && pTimelimitVfs->xCurrentTimeInt64!=0 ){
if( pTimelimitVfs->iVersion>=2 && pTimelimitVfs->xCurrentTimeInt64!=0 ){
sqlite3_int64 tm;
pTimelimitVfs->xCurrentTimeInt64(pTimelimitVfs, &tm);
t = tm/86400000.0;