aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-04 13:02:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-04 13:02:37 +0000
commit86b6603191816516d196d252e14f5c692b8c7887 (patch)
tree8641bff25b533646b0466e11e4e8c2097365ab71
parent29ab9db4f0c9619877773d02278a7a9296803893 (diff)
downloadrspamd-86b6603191816516d196d252e14f5c692b8c7887.tar.gz
rspamd-86b6603191816516d196d252e14f5c692b8c7887.zip
[Fix] Clickhouse: Fix periodic script
-rw-r--r--src/plugins/lua/clickhouse.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index cd9d992d8..878a15064 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -930,7 +930,7 @@ local function clickhouse_maybe_send_data_periodic(cfg, ev_base, now)
end
if settings.limits.max_rows > 0 then
- if nrows > settings.max_rows then
+ if nrows > settings.limits.max_rows then
need_collect = true
reason = string.format('limit of rows has been reached: %d', nrows)
end