Reported number of devices in ntopng footer

This commit is contained in:
Luca Deri 2016-10-08 20:48:23 +02:00
parent 031c4c4d4f
commit 7d4a712ec7
8 changed files with 22 additions and 10 deletions

View file

@ -307,8 +307,8 @@ for _key, _value in pairsByKeys(vals, funct) do
print(" ")
print(getOSIcon(value["os"]))
icon = getHostIcon(hosts_stats[key]["mac"])
icon = ""
if(mac ~= nil) then icon = getHostIcon(hosts_stats[key]["mac"]) end
if(icon == "") then icon = getHostIcon(hosts_stats[key]["ip"].."@"..hosts_stats[key]["vlan"]) end
print(icon)