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

@ -33,8 +33,7 @@ if ((sortColumn == nil) or (sortColumn == "column_")) then
sortColumn = getDefaultTableSort(group_col)
--if(sortColumn == "column_") then sortColumn = "column_name" end
else
if ((aggregated == nil) and (sortColumn ~= "column_")
and (sortColumn ~= "")) then
if ((sortColumn ~= "column_") and (sortColumn ~= "")) then
tablePreferences("sort_"..group_col,sortColumn)
end
end
@ -42,8 +41,7 @@ end
if(sortOrder == nil) then
sortOrder = getDefaultTableSortOrder(group_col)
else
if ((aggregated == nil) and (sortColumn ~= "column_")
and (sortColumn ~= "")) then
if ((sortColumn ~= "column_") and (sortColumn ~= "")) then
tablePreferences("sort_order_"..group_col,sortOrder)
end
end