aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/elastic.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-18 18:08:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-02-18 18:08:25 +0000
commit628b69c39b99817bb5bb694e4e9dead659e58caf (patch)
tree72c03d5a9a2a83dd263d98a2627e3a74a684b959 /src/plugins/lua/elastic.lua
parent6ecb7d259df0c2fe07e3ea99442c1d9228033ee8 (diff)
downloadrspamd-628b69c39b99817bb5bb694e4e9dead659e58caf.tar.gz
rspamd-628b69c39b99817bb5bb694e4e9dead659e58caf.zip
[Minor] Use millisecond timestamps
Diffstat (limited to 'src/plugins/lua/elastic.lua')
-rw-r--r--src/plugins/lua/elastic.lua2
1 files changed, 1 insertions, 1 deletions
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