Supports flow_db_utils to handle both nIndex and Clickhouse

This commit is contained in:
Simone Mainardi 2021-10-21 16:38:39 +02:00
parent d141115b96
commit 13701fdc2c
4 changed files with 9 additions and 9 deletions

View file

@ -36,8 +36,8 @@ function storage_utils.interfaceStorageInfo(ifid, separate_pcap_volume, refresh_
-- end
if interfaceHasNindexSupport() then
local nindex_utils = require "nindex_utils"
local flows_storage_info = nindex_utils.storageInfo(ifid, timeout)
local flow_db_utils = require "flow_db_utils"
local flows_storage_info = flow_db_utils.storageInfo(ifid, timeout)
info["flows"] = flows_storage_info.total
info["total"] = info["total"] + flows_storage_info.total
end