diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-21 04:08:01 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-21 04:08:01 +0400 |
commit | da9546194391e7d14ffe9b0c78f84892b012ff28 (patch) | |
tree | 573d8247533354e338ca4783dc4bdf28b078e531 /src/controller.c | |
parent | d0dbd1aa3a95c5a1f354458033f6af2b8f01a4a5 (diff) | |
download | rspamd-da9546194391e7d14ffe9b0c78f84892b012ff28.tar.gz rspamd-da9546194391e7d14ffe9b0c78f84892b012ff28.zip |
* Add counter for oversized chunks: this parameter can improve performance, for example
if we have too many oversized chunks it is good decision to increase
chunk size.
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c index a2c373d25..b9223ff50 100644 --- a/src/controller.c +++ b/src/controller.c @@ -206,6 +206,8 @@ process_command (struct controller_command *cmd, char **cmd_args, struct control (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); rspamd_dispatcher_write (session->dispatcher, out_buf, r, FALSE); } break; |