Add toast to warn about deprecated nindex support. Cleanup code.

This commit is contained in:
Alfredo Cardigliano 2021-12-09 16:34:47 +01:00
parent 67d8459961
commit cc6014a220
17 changed files with 91 additions and 97 deletions

View file

@ -9,7 +9,7 @@ local have_nedge = ntop.isnEdge()
local is_windows = ntop.isWindows()
local info = ntop.getInfo(false)
local hasRadius = ntop.hasRadiusSupport()
local hasNindex = hasNindexSupport()
local hasClickHouse = hasClickHouseSupport()
local hasLdap = ntop.hasLdapSupport()
local max_nindex_retention = 0
local flow_db_utils = nil
@ -17,7 +17,7 @@ local flow_db_utils = nil
if ntop.isPro() then
package.path = dirs.installdir .. "/scripts/lua/pro/modules/?.lua;" .. package.path
if hasNindexSupport() then
if hasClickHouse then
flow_db_utils = require("flow_db_utils")
_, max_nindex_retention = flow_db_utils.getRetention()
end