Unifies status_id and status_key

This commit is contained in:
Simone Mainardi 2020-04-15 14:28:35 +02:00
parent 1eb02b2c2b
commit 0a9a7015e0
14 changed files with 60 additions and 56 deletions

View file

@ -1611,7 +1611,7 @@ function printActiveFlowsDropdown(base_url, page_params, ifstats, flowstats, is_
local status_stats = flowstats["status"]
local first = true
for _, s in pairsByKeys(flow_consts.status_types) do
local t = s.status_id
local t = s.status_key
if(t > 0) then
if status_stats[t] and status_stats[t].count > 0 then