diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 22:27:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 22:27:39 +0100 |
commit | 08c063c5b33938f29fd8ad64f4d75ad96ddeedda (patch) | |
tree | 7fe697984ed85eb48dd97302fdbb8c36a6c4adab /src/controller.c | |
parent | 6d230abb527752ef25e352d8d09669020774e75f (diff) | |
download | rspamd-08c063c5b33938f29fd8ad64f4d75ad96ddeedda.tar.gz rspamd-08c063c5b33938f29fd8ad64f4d75ad96ddeedda.zip |
Adopt the rest of the code.
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c index 46f4ed66e..3a5fb26fe 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1580,6 +1580,8 @@ rspamd_controller_handle_statreset ( return rspamd_controller_handle_stat_common (conn_ent, msg, TRUE); } +#if 0 +/* XXX: restore counters */ static ucl_object_t * rspamd_controller_cache_item_to_ucl (struct cache_item *item) { @@ -1597,6 +1599,7 @@ rspamd_controller_cache_item_to_ucl (struct cache_item *item) return obj; } +#endif /* * Counters command handler: @@ -1622,6 +1625,8 @@ rspamd_controller_handle_counters ( cache = session->ctx->cfg->cache; top = ucl_object_typed_new (UCL_ARRAY); if (cache != NULL) { +#if 0 +/* XXX: restore counters */ cur = cache->negative_items; while (cur) { item = cur->data; @@ -1640,6 +1645,7 @@ rspamd_controller_handle_counters ( } cur = g_list_next (cur); } +#endif } rspamd_controller_send_ucl (conn_ent, top); ucl_object_unref (top); |