From 3857afe134d446668e5afb07a90017ec542f5c2f Mon Sep 17 00:00:00 2001 From: Valentino Orlandi Date: Sun, 27 Aug 2023 10:57:53 +0200 Subject: [PATCH] Fix Fixed uneffective relational statistics when querying with a 1-day period --- logdoctor/modules/crapview/modules/query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logdoctor/modules/crapview/modules/query.cpp b/logdoctor/modules/crapview/modules/query.cpp index d77b8614..a3000e95 100644 --- a/logdoctor/modules/crapview/modules/query.cpp +++ b/logdoctor/modules/crapview/modules/query.cpp @@ -1504,7 +1504,7 @@ void DbQuery::getRelationalCountsDay( std::optional& result db.close(); } - if ( ! successful ) { + if ( successful ) { result.emplace( data ); } }