mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Reworked flows page
This commit is contained in:
parent
7c936f9d09
commit
3a61763447
26 changed files with 1936 additions and 372 deletions
|
|
@ -245,7 +245,11 @@ function getFlowsFilter()
|
|||
-- Example 5.26
|
||||
pageinfo["l7protoFilter"] = application
|
||||
else
|
||||
pageinfo["l7protoFilter"] = interface.getnDPIProtoId(application)
|
||||
if not tonumber(application) then
|
||||
pageinfo["l7protoFilter"] = interface.getnDPIProtoId(application)
|
||||
else
|
||||
pageinfo["l7protoFilter"] = tonumber(application)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -297,7 +301,7 @@ function getFlowsFilter()
|
|||
elseif alert_type == "filtered" then
|
||||
pageinfo["filteredFlows"] = true
|
||||
else
|
||||
pageinfo["statusFilter"] = tonumber(alert_type)
|
||||
pageinfo["statusFilter"] = tonumber(alert_type) or alert_type
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue