mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added traceback in case of exporter_info as a number
This commit is contained in:
parent
56431ecbf3
commit
4d28c2777c
1 changed files with 6 additions and 0 deletions
|
|
@ -879,6 +879,11 @@ function getExportersUnifiedStats()
|
|||
local unified_exporters = {}
|
||||
for interface_id, device_list in pairs(flowdevs or {}) do
|
||||
for device_id, exporter_info in pairs(device_list, asc) do
|
||||
if type(exporter_info) == "number" then
|
||||
tprint(flowdevs)
|
||||
tprint(debug.traceback())
|
||||
goto continue
|
||||
end
|
||||
local exporter_ip = exporter_info.exporter_ip
|
||||
if not unified_exporters[exporter_ip] then
|
||||
unified_exporters[exporter_ip] = {}
|
||||
|
|
@ -911,6 +916,7 @@ function getExportersUnifiedStats()
|
|||
end
|
||||
end
|
||||
end
|
||||
::continue::
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue