Update webstats_common.lua

pull/368/head
midoks 2 years ago
parent ad102aa940
commit 165d9ba14d
  1. 6
      plugins/webstats/lua/webstats_common.lua

@ -266,15 +266,15 @@ end
function _M.cron(self)
local timer_every_get_data = function (premature)
self:cronPre()
local llen, _ = ngx.shared.mw_total:llen(total_key)
-- self:D("PID:"..tostring(ngx.worker.id())..",llen:"..tostring(llen))
if llen == 0 then
return true
end
self:cronPre()
ngx.update_time()
local begin = ngx.now()

Loading…
Cancel
Save