From: Vsevolod Stakhov Date: Sun, 18 Feb 2018 18:08:25 +0000 (+0000) Subject: [Minor] Use millisecond timestamps X-Git-Tag: 1.7.0~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=628b69c39b99817bb5bb694e4e9dead659e58caf;p=rspamd.git [Minor] Use millisecond timestamps --- diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index c89a9afdc..b42ccd68b 100644 --- a/src/plugins/lua/elastic.lua +++ b/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