Handles possibly missing nindex_utils as in Windows

This commit is contained in:
Simone Mainardi 2019-07-02 16:27:34 +02:00
parent 9c5f4f8198
commit 8c9bf94f4b
4 changed files with 13 additions and 4 deletions

View file

@ -35,7 +35,7 @@ function storage_utils.interfaceStorageInfo(ifid, separate_pcap_volume)
info["total"] = info["total"] + rrd_storage_info.total
-- end
if ntop.isEnterprise() and hasNindexSupport() then
if hasNindexSupport() then
local nindex_utils = require "nindex_utils"
local flows_storage_info = nindex_utils.storageInfo(ifid)
info["flows"] = flows_storage_info.total