diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-07 18:32:15 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2013-01-07 18:32:15 +0400 |
commit | 012167478aa431136aa5e1522d38f6fc971868b5 (patch) | |
tree | 2b90063b6d5cb113407352fe675a03cad1d83cc8 /src/smtp_utils.c | |
parent | 8a29ee5d72c589b47d81e32047361f90702a7cf3 (diff) | |
download | rspamd-012167478aa431136aa5e1522d38f6fc971868b5.tar.gz rspamd-012167478aa431136aa5e1522d38f6fc971868b5.zip |
* Add rolling history feature saving last 200 scanned messages.
Add /history command handler in webui.
Diffstat (limited to 'src/smtp_utils.c')
-rw-r--r-- | src/smtp_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smtp_utils.c b/src/smtp_utils.c index 4f5e8d117..4c87b6382 100644 --- a/src/smtp_utils.c +++ b/src/smtp_utils.c @@ -184,10 +184,10 @@ smtp_metric_callback (gpointer key, gpointer value, gpointer ud) #ifdef HAVE_CLOCK_GETTIME cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "]), len: %z, time: %s,", - task->msg->len, calculate_check_time (&task->tv, &task->ts, task->cfg->clock_res)); + task->msg->len, calculate_check_time (&task->tv, &task->ts, task->cfg->clock_res, &task->scan_milliseconds)); #else cd->log_offset += rspamd_snprintf (cd->log_buf + cd->log_offset, cd->log_size - cd->log_offset, "]), len: %z, time: %s,", - task->msg->len, calculate_check_time (&task->tv, task->cfg->clock_res)); + task->msg->len, calculate_check_time (&task->tv, task->cfg->clock_res, &task->scan_milliseconds)); #endif } |