mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Fixes incorrect link to live flows and added support for generic Exporter Interface (#9772)
This commit is contained in:
parent
6341316d8e
commit
0a1609488b
11 changed files with 343 additions and 365 deletions
|
|
@ -23,6 +23,7 @@ end
|
|||
local ifid = _GET["ifid"]
|
||||
local vlan = tonumber(_GET["vlan_id"] or -1)
|
||||
local device_ip = _GET["deviceIP"]
|
||||
local ifIdx = tonumber(_GET["ifIdx"] or -1)
|
||||
local inIfIdx = tonumber(_GET["inIfIdx"] or -1)
|
||||
local outIfIdx = tonumber(_GET["outIfIdx"] or -1)
|
||||
local criteria = _GET["aggregation_criteria"] or ""
|
||||
|
|
@ -102,7 +103,7 @@ local x = 0
|
|||
-- Retrieve the flows
|
||||
local aggregated_info = interface.getProtocolFlowsStats(criteria_type_id, filters["page"], filters["sort_column"],
|
||||
filters["sort_order"], filters["start"], filters["length"], ternary(not isEmptyString(filters["map_search"]),
|
||||
filters["map_search"], nil), ternary(filters["host"] ~= "", filters["host"], nil), vlan, device_ip, inIfIdx, outIfIdx)
|
||||
filters["map_search"], nil), ternary(filters["host"] ~= "", filters["host"], nil), vlan, device_ip, inIfIdx, outIfIdx, ifIdx)
|
||||
-- Formatting the data
|
||||
for _, data in pairs(aggregated_info or {}) do
|
||||
local bytes_sent = data.bytes_sent or 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue