commit f20f726: [Minor] Replies: Convert expire to integer
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Dec 16 15:35:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-16 15:28:51 +0000
URL: https://github.com/rspamd/rspamd/commit/f20f726a864cfd6a72258d5e965c2f6ef11b8dcd (HEAD -> master)
[Minor] Replies: Convert expire to integer
Issue: #3183
---
src/plugins/lua/replies.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index dcba6cc81..6c3459b4f 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -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")
More information about the Commits
mailing list