From 08c063c5b33938f29fd8ad64f4d75ad96ddeedda Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 May 2015 22:27:39 +0100 Subject: Adopt the rest of the code. --- src/controller.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/controller.c') 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); -- cgit v1.2.3