This commit is contained in:
parent
c0c67095be
commit
7b962335e4
|
|
@ -55,6 +55,7 @@ end
|
|||
function _M.getInstance(self)
|
||||
if self.instance == nil then
|
||||
self.instance = self:new()
|
||||
self:cron()
|
||||
end
|
||||
assert(self.instance ~= nil)
|
||||
return self.instance
|
||||
|
|
|
|||
|
|
@ -17,5 +17,4 @@ end
|
|||
|
||||
if ngx.worker.id() == 0 then
|
||||
ngx.timer.every(60, webstats_cron_pre)
|
||||
WS_C:cron()
|
||||
end
|
||||
Loading…
Reference in New Issue