summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2022-05-24 14:41:04 +0300
committerGitHub <noreply@github.com>2022-05-24 13:41:04 +0200
commit3766c410f83a593c54eedc8f726b0ab9daed4b1a (patch)
tree700b30581f9a074177aeec665ce202e7d7d09230 /daemon
parent546010acad2fd18bf3fd463f53ec7cc4ead1ea5f (diff)
Fix compilation warnings (#12993)
Diffstat (limited to 'daemon')
-rw-r--r--daemon/unit_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/unit_test.c b/daemon/unit_test.c
index 4e3056e759..35f8613a2b 100644
--- a/daemon/unit_test.c
+++ b/daemon/unit_test.c
@@ -2267,9 +2267,8 @@ void dbengine_stress_test(unsigned TEST_DURATION_SEC, unsigned DSET_CHARTS, unsi
for (i = 0 ; i < DSET_CHARTS ; ++i) {
stored_metrics_nr += chart_threads[i]->stored_metrics_nr;
}
- unsigned long queries_nr = 0, queried_metrics_nr = 0;
+ unsigned long queried_metrics_nr = 0;
for (i = 0 ; i < QUERY_THREADS ; ++i) {
- queries_nr += query_threads[i]->queries_nr;
queried_metrics_nr += query_threads[i]->queried_metrics_nr;
}
fprintf(stderr, "%u metrics were stored (dataset size of %lu MiB) in %u charts by 1 writer thread per chart.\n",