diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index 255aa5c1c..814d650cd 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -372,7 +372,7 @@ function _M.cron(self) end local input_stmts = stmts[input_sn]["web_logs"] - if input_stmts then + if not input_stmts then ngx.shared.mw_total:rpush(total_key, data) self:unlock_working(cron_key) break