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

@ -23,7 +23,7 @@ key = _GET["key"]
if((sortColumn == nil) or (sortColumn == "column_")) then
sortColumn = getDefaultTableSort("http_hosts")
else
if((aggregated == nil) and (sortColumn ~= "column_") and (sortColumn ~= "")) then
if((sortColumn ~= "column_") and (sortColumn ~= "")) then
tablePreferences("sort_http_hosts", sortColumn)
end
end
@ -33,9 +33,7 @@ end
if(sortOrder == nil) then
sortOrder = getDefaultTableSortOrder("http_hosts")
else
if((aggregated == nil)
and (sortColumn ~= "column_")
and (sortColumn ~= "")) then
if((sortColumn ~= "column_") and (sortColumn ~= "")) then
tablePreferences("sort_order_http_hosts",sortOrder)
end
end