diff options
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 67f7567a9..b5975929f 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -854,18 +854,13 @@ rspamd_metric_result_ucl (struct rspamd_task *task, logbuf->len--; } -#ifdef HAVE_CLOCK_GETTIME - rspamd_printf_gstring (logbuf, "]), len: %z, time: %s, dns req: %d,", - task->msg.len, calculate_check_time (&task->tv, &task->ts, - task->cfg->clock_res, &task->scan_milliseconds), - task->dns_requests); -#else rspamd_printf_gstring (logbuf, "]), len: %z, time: %s, dns req: %d,", task->msg.len, - calculate_check_time (&task->tv, task->cfg->clock_res, + calculate_check_time (task->time_real, + task->time_virtual, + task->cfg->clock_res, &task->scan_milliseconds), - task->dns_requests); -#endif + task->dns_requests); } return obj; |