mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Handles possibly missing nindex_utils as in Windows
This commit is contained in:
parent
9c5f4f8198
commit
8c9bf94f4b
4 changed files with 13 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue