From 2640ba97c51ea469cb608800ce38375a28fcf2f6 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 18 Oct 2022 18:03:35 +0800 Subject: [PATCH] Update webstats_common.lua --- plugins/webstats/lua/webstats_common.lua | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index b6cdbad43..3668fa7e5 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -281,8 +281,6 @@ function _M.cron(self) end self:lock_working(cron_key) - - -- 每秒100条 for i=1,llen do @@ -298,8 +296,6 @@ function _M.cron(self) local stat_tmp_fields = info['stat_fields'] - -- self:D("stat_fields:"..json.encode(stat_tmp_fields)) - -- 合并统计数据 for stf_k,stf_v in pairs(stat_tmp_fields) do @@ -317,28 +313,10 @@ function _M.cron(self) end stat_fields[input_sn] = stat_fields_is - - -- local request_stat_fields = stat_fields[1] - -- local client_stat_fields = stat_fields[2] - -- local spider_stat_fields = stat_fields[3] - - -- if "x" == client_stat_fields then - -- client_stat_fields = nil - -- end - - -- if "x" == spider_stat_fields then - -- spider_stat_fields = nil - -- end - - -- self:D("request_stat_fields:"..tostring(request_stat_fields)) - -- self:D("client_stat_fields:"..tostring(client_stat_fields)) - -- self:D("spider_stat_fields:"..tostring(spider_stat_fields)) end end end - - for site_k, site_v in ipairs(sites) do local input_sn = site_v["name"] @@ -356,8 +334,6 @@ function _M.cron(self) local stat_fields_is = stat_fields[input_sn] local db = dbs[input_sn] - -- self:D("【stat_fields】["..input_sn.."]:"..json.encode(stat_fields_is)) - -- 统计【spider_stat,client_stat,request_stat】 for sti_k,sti_v in pairs(stat_fields_is) do local vkk = ""