Update webstats_common.lua

This commit is contained in:
midoks 2022-10-17 02:49:16 +08:00
parent 6a706651e4
commit a678d851a0
1 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ function _M.cron(self)
-- 空闲空间小于10M,立即存盘
-- local capacity_bytes = ngx.shared.mw_total:free_space()
-- self:D("capacity_bytes:"..capacity_bytes)
os.execute("sleep " .. 1)
local nlen = llen - 100
for i = 1,llen do
local data = ""
@ -117,7 +117,7 @@ function _M.cron(self)
self:unlock_working(cron_key)
end
ngx.timer.every(3, timer_every_get_data)
ngx.timer.every(1, timer_every_get_data)
end