From: Andrew Lewis Date: Tue, 14 Mar 2017 14:42:40 +0000 (+0200) Subject: [Minor] Redis history: fix number of rows X-Git-Tag: 1.5.3~27^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f7bfde3123768bf09336f154785c2396a3ba0339;p=rspamd.git [Minor] Redis history: fix number of rows --- diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua index 9f7046ca0..c656215d0 100644 --- a/src/plugins/lua/history_redis.lua +++ b/src/plugins/lua/history_redis.lua @@ -110,7 +110,7 @@ local function history_save(task) ) if ret then - conn:add_cmd('LTRIM', {prefix, '0', tostring(settings.nrows)}) + conn:add_cmd('LTRIM', {prefix, '0', tostring(settings.nrows-1)}) end end @@ -196,4 +196,4 @@ if opts then handler = handle_history_request } end -end \ No newline at end of file +end