Browse Source

Fix actions output in 'stat' command.

tags/0.7.0
Vsevolod Stakhov 10 years ago
parent
commit
d3d0a309c8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/controller.c

+ 1
- 1
src/controller.c View File

@@ -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) {

Loading…
Cancel
Save