summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorLeo Liu <silver886@users.noreply.github.com>2024-11-10 03:28:54 -0800
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-11-10 15:53:58 +0100
commitb173f3a8b9af399ad222a73659f344cba02ebea3 (patch)
tree830928064a6022cc3f80b0c02b3656c6b3f6d968 /searx
parent2fbf15eccbbc3af70f8b93257c9a39d26603f097 (diff)
downloadsearxng-b173f3a8b9af399ad222a73659f344cba02ebea3.tar.gz
searxng-b173f3a8b9af399ad222a73659f344cba02ebea3.zip
Fix scheduler.lua
Diffstat (limited to 'searx')
-rw-r--r--searx/search/checker/scheduler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search/checker/scheduler.lua b/searx/search/checker/scheduler.lua
index c5ebb05bc..0de9b404d 100644
--- a/searx/search/checker/scheduler.lua
+++ b/searx/search/checker/scheduler.lua
@@ -20,7 +20,7 @@ if (next_call_ts == false or next_call_ts == nil) then
-- 2/ the next call is a random time between start_after_from and start_after_to
local initial_delay = math.random(start_after_from, start_after_to)
redis.call('SET', redis_key, now + initial_delay)
- return { false, delay }
+ return { false, initial_delay }
end
-- next_call_ts is defined