diff options
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 6683990c0..9e2875297 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -328,7 +328,7 @@ rspamd_stat_preprocess (struct rspamd_stat_ctx *st_ctx, continue; } - bk_run = st->backend->runtime (task, st->stcf, is_learn, st->bkcf); + bk_run = st->backend->runtime (task, st->stcf, is_learn, st->bkcf, i); if (bk_run == NULL) { msg_err_task ("cannot init backend %s for statfile %s", @@ -1204,7 +1204,7 @@ rspamd_stat_statistics (struct rspamd_task *task, id = g_array_index (cl->statfiles_ids, gint, j); st = g_ptr_array_index (st_ctx->statfiles, id); backend_runtime = st->backend->runtime (task, st->stcf, FALSE, - st->bkcf); + st->bkcf, id); elt = st->backend->get_stat (backend_runtime, st->bkcf); if (elt && ucl_object_type (elt) == UCL_OBJECT) { |