Implemented ICMP handling

Optimized flow memory
This commit is contained in:
Luca Deri 2016-06-15 15:33:00 +02:00
parent 46e0fef38b
commit d6bc2ce91a
15 changed files with 277 additions and 144 deletions

View file

@ -113,6 +113,7 @@ hosts_stats = hosts_retrv_function(false, sortColumn, perPage, to_skip, sOrder,
hosts_stats,total = aggregateHostsStats(hosts_stats)
if(total == nil) then total = 0 end
-- for k,v in pairs(hosts_stats) do io.write(k.." ["..sortColumn.."]\n") end
-- io.write("->"..total.." ["..sortColumn.."]\n")
@ -169,6 +170,7 @@ if(mode == "network") then
end
num = 0
if(hosts_stats ~= nil) then
for key, value in pairs(hosts_stats) do
num = num + 1
postfix = string.format("0.%04u", num)
@ -255,6 +257,7 @@ for key, value in pairs(hosts_stats) do
end
end
end
end
if(sortOrder == "asc") then
funct = asc