Update webstats_worker.lua

This commit is contained in:
midoks
2023-02-12 00:35:52 +08:00
parent 066e7087c9
commit 088337765c
+1 -1
View File
@@ -10,7 +10,6 @@ local __WS_C = require "webstats_common"
local WS_C = __WS_C:getInstance()
WS_C:cronPre()
WS_C:cron()
local webstats_cron_pre = function(premature)
WS_C:cronPre()
@@ -18,4 +17,5 @@ end
if ngx.worker.id() == 0 then
ngx.timer.every(60, webstats_cron_pre)
WS_C:cron()
end