Fix for invalid host retrieval (no hosts returned while hosts were present)

Fixed invalid host first/last seen in colelctor interfaces
Enhanced usage of interface Ids in collected flows
This commit is contained in:
Luca Deri 2017-03-04 11:23:57 +01:00
parent d78136b615
commit e5e6ff6cd8
5 changed files with 95 additions and 75 deletions

View file

@ -118,9 +118,10 @@ end
hosts_stats = hosts_retrv_function(false, sortColumn, perPage, to_skip, sOrder,
country, os_, tonumber(vlan), tonumber(asn),
tonumber(network), mac, tonumber(pool), tonumber(ipversion)) -- false = little details
--io.write("hello\n")
--tprint(hosts_stats)
tonumber(network), mac,
tonumber(pool), tonumber(ipversion)) -- false = little details
-- tprint(hosts_stats)
--io.write("---\n")
if(hosts_stats == nil) then total = 0 else total = hosts_stats["numHosts"] end
hosts_stats = hosts_stats["hosts"]