]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use millisecond timestamps
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Feb 2018 18:08:25 +0000 (18:08 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Feb 2018 18:08:25 +0000 (18:08 +0000)
src/plugins/lua/elastic.lua

index c89a9afdc112d7c962b420f76a2400a12a59a602..b42ccd68b0c4e040cab394cf61231ca72613f2b9 100644 (file)
@@ -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