diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-16 15:28:51 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-16 15:28:51 +0000 |
commit | f20f726a864cfd6a72258d5e965c2f6ef11b8dcd (patch) | |
tree | 45c8891ad0d1a1395dd798bb86418d24c05d8a26 /src | |
parent | cfbfd0fca860f3d616fa07e0e9706a3f954f5476 (diff) | |
download | rspamd-f20f726a864cfd6a72258d5e965c2f6ef11b8dcd.tar.gz rspamd-f20f726a864cfd6a72258d5e965c2f6ef11b8dcd.zip |
[Minor] Replies: Convert expire to integer
Issue: #3183
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/replies.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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") |