aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorcebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-17 17:58:31 +0300
committercebka@lenovo-laptop <cebka@lenovo-laptop>2010-03-17 17:58:31 +0300
commit164e887eca4775660e02413193c62bf02dd2b05a (patch)
treec91630bcccf9c6902c0da4b833518f41ee7150b8 /src/controller.c
parent27d9a41aad8344d40683663313899cf121eb03db (diff)
downloadrspamd-164e887eca4775660e02413193c62bf02dd2b05a.tar.gz
rspamd-164e887eca4775660e02413193c62bf02dd2b05a.zip
* Add statistics for fuzzy storage
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 4133aad12..64df87d6c 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -354,6 +354,8 @@ process_stat_command (struct controller_session *session)
r += snprintf (out_buf + r, sizeof (out_buf) - r, "Shared chunks allocated: %ld" CRLF, (long int)mem_st.shared_chunks_allocated);
r += snprintf (out_buf + r, sizeof (out_buf) - r, "Chunks freed: %ld" CRLF, (long int)mem_st.chunks_freed);
r += snprintf (out_buf + r, sizeof (out_buf) - r, "Oversized chunks: %ld" CRLF, (long int)mem_st.oversized_chunks);
+ r += snprintf (out_buf + r, sizeof (out_buf) - r, "Fuzzy hashes stored: %u" CRLF, session->worker->srv->stat->fuzzy_hashes);
+ r += snprintf (out_buf + r, sizeof (out_buf) - r, "Fuzzy hashes expired: %u" CRLF, session->worker->srv->stat->fuzzy_hashes_expired);
/* Now write statistics for each statfile */
cur_cl = g_list_first (session->cfg->classifiers);
while (cur_cl) {