Update webstats_common.lua

This commit is contained in:
midoks
2023-02-12 00:35:39 +08:00
parent 29144595a6
commit 066e7087c9
-9
View File
@@ -36,9 +36,6 @@ function _M.new(self)
params = nil,
site_config = nil,
config = nil,
cron_num = 0,
cron_num_limit = 4,
}
-- self.dbs = {}
return setmetatable(self, mt)
@@ -256,12 +253,6 @@ end
-- 后台任务
function _M.cron(self)
self.cron_num = self.cron_num + 1
if self.cron_num > self.cron_num_limit then
return
end
-- self:D("PID:"..tostring(ngx.worker.id())..",cron_num:"..tostring(self.cron_num))
local timer_every_get_data = function (premature)