Update webstats_common.lua

This commit is contained in:
midoks
2023-03-13 01:33:07 +08:00
parent 77120cf31b
commit a2570af5f7
+5 -5
View File
@@ -289,6 +289,11 @@ function _M.cron(self)
return true
end
local cron_key = 'cron_every_1s'
if self:is_working(cron_key) then
return true
end
ngx.update_time()
local begin = ngx.now()
@@ -330,11 +335,6 @@ function _M.cron(self)
end
end
local cron_key = 'cron_every_1s'
if self:is_working(cron_key) then
return true
end
self:lock_working(cron_key)
-- 每秒100条