mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implemented ICMP handling
Optimized flow memory
This commit is contained in:
parent
46e0fef38b
commit
d6bc2ce91a
15 changed files with 277 additions and 144 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue