mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes possible collisions when looking up flows by key
This commit is contained in:
parent
6533175336
commit
6fd7386c03
24 changed files with 146 additions and 125 deletions
|
|
@ -11,15 +11,9 @@ local json = require "dkjson"
|
|||
sendHTTPHeader('text/json')
|
||||
|
||||
local flow_key = _GET["flow_key"]
|
||||
local flow
|
||||
local flow = interface.findFlowByKeyAndHashId(tonumber(flow_key), 0 --[[ TODO --]])
|
||||
local tree = {}
|
||||
|
||||
if(flow_key == nil) then
|
||||
flow = nil
|
||||
else
|
||||
flow = interface.findFlowByKey(tonumber(flow_key))
|
||||
end
|
||||
|
||||
local function format_proc(name, pid)
|
||||
return string.format("%s [pid: %u]", name, pid)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue