mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix aggregated live flows with host filter.
This commit is contained in:
parent
1c5b387d04
commit
e535c2a954
1 changed files with 21 additions and 9 deletions
|
|
@ -189,8 +189,8 @@ for _, data in pairs(aggregated_info or {}) do
|
|||
|
||||
-- TODO: remove this data from inside the for
|
||||
num_entries = data.num_entries
|
||||
if num_entries > 0 then
|
||||
res[#res + 1] = {
|
||||
|
||||
local item = {
|
||||
flows = format_high_num_value_for_tables(data, 'num_flows'),
|
||||
|
||||
breakdown = {
|
||||
|
|
@ -207,15 +207,27 @@ for _, data in pairs(aggregated_info or {}) do
|
|||
server = server,
|
||||
info = info,
|
||||
application = application,
|
||||
app_proto_is_not_guessed = data.is_not_guessed,
|
||||
confidence_name = get_confidence(ternary(application.id == "0", "-1", ternary(data.is_not_guessed, "1", "0"))),
|
||||
confidence = ternary(data.is_not_guessed, 1, 0),
|
||||
vlan_id = {
|
||||
id = data.vlan_id,
|
||||
label = ternary(data.vlan_id, getFullVlanName(data.vlan_id), "")
|
||||
}
|
||||
vlan_id = {
|
||||
id = nil,
|
||||
label = nil
|
||||
}
|
||||
}
|
||||
|
||||
if data.vlan_id and data.vlan_id ~= 0 then
|
||||
item.vlan_id = {
|
||||
id = data.vlan_id,
|
||||
label = getFullVlanName(data.vlan_id)
|
||||
}
|
||||
end
|
||||
if criteria_type_id == 1 or criteria_type_id == 5 then
|
||||
item.app_proto_is_not_guessed = data.is_not_guessed
|
||||
item.confidence_name = get_confidence(ternary(application.id == "0", "-1", ternary(data.is_not_guessed, "1", "0")))
|
||||
item.confidence = ternary(data.is_not_guessed, 1, 0)
|
||||
end
|
||||
|
||||
if num_entries > 0 then
|
||||
res[#res + 1] = item
|
||||
|
||||
end
|
||||
|
||||
::continue::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue