From d3d0a309c8f9dd86441afb2722d6ca60f787cd66 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 2 May 2014 15:27:18 +0100 Subject: [PATCH] Fix actions output in 'stat' command. --- src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.c b/src/controller.c index 1de31ccfbc..70d7a79194 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1285,7 +1285,7 @@ rspamd_controller_handle_stat_common (struct rspamd_http_connection_entry *conn_ if (stat->messages_scanned > 0) { sub = ucl_object_typed_new (UCL_OBJECT); for (i = METRIC_ACTION_REJECT; i <= METRIC_ACTION_NOACTION; i ++) { - ucl_object_insert_key (top, + ucl_object_insert_key (sub, ucl_object_fromint (stat->actions_stat[i]), str_action_metric (i), 0, false); if (i < METRIC_ACTION_GREYLIST) { -- 2.47.3