Code cleanup: removed code used very seldom such as host aggregations/contacts. This should reduce memory usage and make ntopng faster

Little progresses towards MySQL support
This commit is contained in:
Luca Deri 2015-08-08 01:13:59 +02:00
parent c85468df55
commit 6aa141caa9
59 changed files with 253 additions and 4282 deletions

View file

@ -30,7 +30,6 @@ network_id = _GET["network_id"]
vhost = _GET["vhost"]
-- Host comparison parameters
aggregation = _GET["aggregation"]
key = _GET["key"]
-- System host parameters
@ -53,8 +52,7 @@ end
if ((sortColumn == nil) or (sortColumn == "column_"))then
sortColumn = getDefaultTableSort("flows")
else
if ((aggregated == nil) and (sortColumn ~= "column_")
and (sortColumn ~= "")) then
if((sortColumn ~= "column_") and (sortColumn ~= "")) then
tablePreferences("sort_flows",sortColumn)
end
end
@ -62,8 +60,7 @@ end
if(sortOrder == nil) then
sortOrder = getDefaultTableSortOrder("flows")
else
if ((aggregated == nil) and (sortColumn ~= "column_")
and (sortColumn ~= "")) then
if ((sortColumn ~= "column_") and (sortColumn ~= "")) then
tablePreferences("sort_order_flows",sortOrder)
end
end
@ -127,13 +124,6 @@ if (host ~= nil) then
num_host_list = 1
end
-- Prepare aggregation
if ((aggregation ~= nil) and (key ~= nil)) then
if (aggregation == "ndpi") then application = key end
if (aggregation == "l4proto") then l4proto = key end
if (aggregation == "port") then port = tonumber(key) end
end
vals = {}
num = 0