Browse Source

[Minor] Use millisecond timestamps

pull/2026/head
Vsevolod Stakhov 8 years ago
parent
commit
628b69c39b
  1. 2
      src/plugins/lua/elastic.lua

2
src/plugins/lua/elastic.lua

@ -177,7 +177,7 @@ local function elastic_collect(task)
if not enabled then return end
if rspamd_lua_utils.is_rspamc_or_controller(task) then return end
local row = {['rspam_meta'] = get_general_metadata(task),
['@timestamp'] = tostring(util.get_time()).."000"}
['@timestamp'] = tostring(util.get_time() * 1000)}
table.insert(rows, row)
nrows = nrows + 1
if nrows > settings['limit'] then

Loading…
Cancel
Save