mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
added feature sorting flows by protocol (#8416)
This commit is contained in:
parent
6b5a55497e
commit
db8cb2cfa0
4 changed files with 36 additions and 4 deletions
|
|
@ -39,6 +39,7 @@ local mapping_column_lua_c = {
|
|||
client = "column_client",
|
||||
l4_proto = "column_proto_l4",
|
||||
application = "column_ndpi",
|
||||
protocol = "column_protocol",
|
||||
score = "column_score",
|
||||
first_seen = "column_first_seen",
|
||||
last_seen = "column_last_seen",
|
||||
|
|
@ -55,6 +56,7 @@ if _GET["start"] and _GET["length"] then
|
|||
flows_filter.maxHits = tonumber(_GET["length"])
|
||||
flows_filter.toSkip = tonumber(_GET["start"])
|
||||
end
|
||||
|
||||
if not isEmptyString(_GET["sort"]) then
|
||||
flows_filter.sortColumn = mapping_column_lua_c[_GET["sort"]]
|
||||
local order = _GET["order"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue