diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-10 13:24:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-10 13:55:35 +0100 |
commit | f55aa7f3ba3c2bde2cad869811bc6ab1aedf49a6 (patch) | |
tree | 3e3adb3ec13c8301cb4b97ca03d3b61507438f5d /src | |
parent | d7e09f6f2690de8c06a33c66fa2b717b8a230dc0 (diff) | |
download | rspamd-f55aa7f3ba3c2bde2cad869811bc6ab1aedf49a6.tar.gz rspamd-f55aa7f3ba3c2bde2cad869811bc6ab1aedf49a6.zip |
[Minor] Fix floating point conversion
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/ratelimit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 8e00aa342..c82019a3f 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -89,7 +89,7 @@ local bucket_check_script = [[ redis.call('HSET', KEYS[1], 'b', '0') end - return {0, burst, dynr, dynb} + return {0, burst, tostring(dynr), tostring(dynb)} ]] local bucket_check_id @@ -138,7 +138,7 @@ local bucket_update_script = [[ redis.call('HSET', KEYS[1], 'l', KEYS[2]) redis.call('EXPIRE', KEYS[1], KEYS[7]) - return {burst, dr, db} + return {burst, tostring(dr), tostring(db)} ]] local bucket_update_id |