mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update webstats_common.lua
This commit is contained in:
@@ -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条
|
||||
|
||||
Reference in New Issue
Block a user