mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Removing lua utils in storage utils (#8227)
* Removing lua_utils from storage_utils * Remove profiling * Add missing requires for the 'flowinfo2hostname' method. * Move clickhouseSupport check to check_redis_prefs
This commit is contained in:
parent
7cf91395df
commit
1e9524d483
19 changed files with 109 additions and 96 deletions
|
|
@ -529,8 +529,26 @@ function printInterfaceIndex(idx)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- NOTE: global nindex support may be enabled but some disable on some interfaces
|
||||
function interfaceHasClickHouseSupport()
|
||||
require "check_redis_prefs"
|
||||
return(hasClickHouseSupport() and ntop.getPrefs()["is_dump_flows_to_clickhouse_enabled"])
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
function swapKeysValues(tbl)
|
||||
local new_tbl = {}
|
||||
for k, v in pairs(tbl or {}) do
|
||||
new_tbl[v] = k
|
||||
end
|
||||
return new_tbl
|
||||
end
|
||||
|
||||
if(trace_script_duration ~= nil) then
|
||||
io.write(debug.getinfo(1,'S').source .." executed in ".. (os.clock()-clock_start)*1000 .. " ms\n")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue