aboutsummaryrefslogtreecommitdiff
path: root/src/database_sqlite.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/database_sqlite.cc')
-rw-r--r--src/database_sqlite.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database_sqlite.cc b/src/database_sqlite.cc
index a9b4a58..8a5e526 100644
--- a/src/database_sqlite.cc
+++ b/src/database_sqlite.cc
@@ -90,7 +90,7 @@ static sqlite3_stmt *PrepareQuery(TDatabase *Database, const char *Text){
ASSERT(EntryText != NULL);
if(strcmp(EntryText, Text) == 0){
Stmt = Entry->Stmt;
- Entry->LastUsed = g_MonotonicTimeMS;
+ Entry->LastUsed = GetMonotonicUptimeMS();
break;
}
}
@@ -109,7 +109,7 @@ static sqlite3_stmt *PrepareQuery(TDatabase *Database, const char *Text){
}
Entry->Stmt = Stmt;
- Entry->LastUsed = g_MonotonicTimeMS;
+ Entry->LastUsed = GetMonotonicUptimeMS();
Entry->Hash = Hash;
}else{
if(sqlite3_stmt_busy(Stmt) != 0){