mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix geomap visualization
This commit is contained in:
parent
1b361e2a65
commit
8f3b730bea
6 changed files with 41 additions and 12 deletions
|
|
@ -1012,7 +1012,7 @@ function addGoogleMapsScript()
|
|||
else
|
||||
g_maps_key = ""
|
||||
end
|
||||
print("<script src=\"https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"..g_maps_key.."\"></script>\n")
|
||||
print("<script src=\"https://maps.googleapis.com/maps/api/js?v=3.exp"..g_maps_key.."\"></script>\n")
|
||||
end
|
||||
|
||||
function addLogoSvg()
|
||||
|
|
@ -3224,7 +3224,7 @@ function hasSnmpDevices(ifid)
|
|||
return has_snmp_devices(ifid)
|
||||
end
|
||||
|
||||
function getTopFlowPeers(hostname_vlan, max_hits, detailed)
|
||||
function getTopFlowPeers(hostname_vlan, max_hits, detailed, other_options)
|
||||
local detailed = detailed or false
|
||||
|
||||
local paginator_options = {
|
||||
|
|
@ -3234,6 +3234,10 @@ function getTopFlowPeers(hostname_vlan, max_hits, detailed)
|
|||
maxHits = max_hits,
|
||||
}
|
||||
|
||||
if other_options ~= nil then
|
||||
paginator_options = table.merge(paginator_options, other_options)
|
||||
end
|
||||
|
||||
local res = interface.getFlowsInfo(hostname_vlan, paginator_options)
|
||||
if ((res ~= nil) and (res.flows ~= nil)) then
|
||||
return res.flows
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue