Browse Source

[Minor] Pet luacheck

pull/2891/head
Vsevolod Stakhov 7 years ago
parent
commit
54fdf81775
  1. 3
      src/plugins/lua/clickhouse.lua

3
src/plugins/lua/clickhouse.lua

@ -577,7 +577,8 @@ local function clickhouse_collect(task)
local scan_real,scan_virtual = task:get_scan_time()
scan_real,scan_virtual = math.floor(scan_real * 1000), math.floor(scan_virtual * 1000)
if scan_real < 0 then
rspamd_logger.messagex(task, 'clock skew detected for message: %s ms real scan time (reset to 0), %s virtual scan time',
rspamd_logger.messagex(task,
'clock skew detected for message: %s ms real scan time (reset to 0), %s virtual scan time',
scan_real, scan_virtual)
scan_real = 0
end

Loading…
Cancel
Save