From f7bfde3123768bf09336f154785c2396a3ba0339 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 14 Mar 2017 16:42:40 +0200 Subject: [PATCH] [Minor] Redis history: fix number of rows --- src/plugins/lua/history_redis.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5