Various cosmetic fixes in host and flow pages

Service map is not reported when there are no services listed
This commit is contained in:
Luca Deri 2020-11-01 13:54:24 +01:00
parent cc2df1d66e
commit 9d232d614c
4 changed files with 24 additions and 18 deletions

View file

@ -285,10 +285,11 @@ else
local has_icmp = ((table.len(host["ICMPv4"]) + table.len(host["ICMPv6"])) ~= 0)
local periodicity_map = interface.periodicityMap(_GET["host"])
local service_map = interface.serviceMap(_GET["host"])
local periodicity_map_available = false
local service_map_available = false
if(interface.serviceMap(_GET["host"]) ~= nil) then
if(service_map and (table.len(service_map) > 0)) then
service_map_available = true
end