]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Replies: Convert expire to integer
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Dec 2019 15:28:51 +0000 (15:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 Dec 2019 15:28:51 +0000 (15:28 +0000)
Issue: #3183

src/plugins/lua/replies.lua

index dcba6cc81656e1c19600179bfbdd87f930b96af7..6c3459b4f37ced88129eb5fa5fcbd8d08299c33e 100644 (file)
@@ -159,7 +159,7 @@ local function replies_set(task)
         true, -- is write
         redis_set_cb, --callback
         'SETEX', -- command
-        {key, tostring(settings['expire']), value:lower()} -- arguments
+        {key, tostring(math.floor(settings['expire'])), value:lower()} -- arguments
     )
     if not ret then
       rspamd_logger.errx(task, "redis request wasn't scheduled")