mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Fix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined.
FossilOrigin-Name: 3df3e79b56821201b4f5ecd23f94d485745c48c3
This commit is contained in:
@@ -5000,7 +5000,7 @@ static int unixCurrentTimeInt64(sqlite3_vfs *NotUsed, sqlite3_int64 *piNow){
|
||||
#if defined(NO_GETTOD)
|
||||
time_t t;
|
||||
time(&t);
|
||||
*piNow = ((sqlite3_int64)i)*1000 + unixEpoch;
|
||||
*piNow = ((sqlite3_int64)t)*1000 + unixEpoch;
|
||||
#elif OS_VXWORKS
|
||||
struct timespec sNow;
|
||||
clock_gettime(CLOCK_REALTIME, &sNow);
|
||||
|
||||
Reference in New Issue
Block a user