mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add interfaces stats api and refactor the others health api. (#7141)
This commit is contained in:
parent
193927107e
commit
ba9bfd3d1a
9 changed files with 205 additions and 49 deletions
|
|
@ -100,6 +100,7 @@ function storage_utils.storageInfo(refresh_cache, timeout)
|
|||
local if_info = storage_utils.interfaceStorageInfo(ifid, separate_pcap_volume, refresh_cache, timeout)
|
||||
if if_info then
|
||||
info.interfaces[ifid] = if_info
|
||||
info.interfaces[ifid]["name"] = name
|
||||
info.total = info.total + if_info.total
|
||||
if if_info.pcap ~= nil then
|
||||
info.pcap_total = info.pcap_total + if_info.pcap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue