mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Always use ntop.isClickHouseEnabled() from lua. Remove prefs.is_dump_flows_to_mysql_enabled to avoid inconsistencies.
This commit is contained in:
parent
abf89f79c4
commit
06965dab27
9 changed files with 14 additions and 22 deletions
|
|
@ -926,8 +926,7 @@ function historicalProtoHostHref(ifId, host, l4_proto, ndpi_proto_id, info, vlan
|
|||
local now = os.time()
|
||||
local ago1h = now - 3600
|
||||
|
||||
local prefs = ntop.getPrefs()
|
||||
if prefs.is_dump_flows_to_clickhouse_enabled then
|
||||
if ntop.isClickHouseEnabled() then
|
||||
local hist_url = ntop.getHttpPrefix() .. "/lua/pro/db_search.lua?"
|
||||
local params = {
|
||||
epoch_end = now,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue