From: Vsevolod Stakhov Date: Fri, 2 May 2014 14:27:18 +0000 (+0100) Subject: Fix actions output in 'stat' command. X-Git-Tag: 0.7.0~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3d0a309c8f9dd86441afb2722d6ca60f787cd66;p=thirdparty%2Frspamd.git Fix actions output in 'stat' command. --- 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) {