mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added missing check
This commit is contained in:
parent
57b97c38bf
commit
89dccead45
1 changed files with 7 additions and 2 deletions
|
|
@ -42,8 +42,13 @@ local total = 0
|
|||
|
||||
if not flows_to_update then
|
||||
flows_stats = interface.getFlowsInfo(flows_filter["hostFilter"], flows_filter, flows_filter["talkingWith"])
|
||||
total = flows_stats["numFlows"]
|
||||
flows_stats = flows_stats["flows"]
|
||||
|
||||
if(flows_stats == nil) then
|
||||
flows_stats = {}
|
||||
else
|
||||
total = flows_stats["numFlows"]
|
||||
flows_stats = flows_stats["flows"]
|
||||
end
|
||||
else
|
||||
flows_stats = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue