Also try to import data from database after flushing event

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-01-21 11:42:01 +01:00
parent 446bd677f7
commit 72ad1970c1
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -531,7 +531,7 @@ void read_data_from_DB(void)
// 1483228800 = 01/01/2017 @ 12:00am (UTC)
if(queryTimeStamp < 1483228800)
{
logg("DB warn: TIMESTAMP should be larger than 01/01/2017 but it %i", queryTimeStamp);
logg("DB warn: TIMESTAMP should be larger than 01/01/2017 but is %i", queryTimeStamp);
continue;
}
int type = sqlite3_column_int(stmt, 2);
+4
View File
@@ -81,4 +81,8 @@ void pihole_log_flushed(bool message)
// Recount entries in gravity files
read_gravity_files();
// Try to import queries from long-term database if available
if(database)
read_data_from_DB();
}