mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Removed flows with 0 traffic and fixed menu entry
This commit is contained in:
parent
d267cee3eb
commit
d09926b6d0
6 changed files with 26 additions and 11 deletions
|
|
@ -149,6 +149,8 @@ function flow_data_historical.retrieveFlowData(select_columns, where_filters,
|
|||
for pos, column_info in pairs(sort_columns or {}) do
|
||||
local order_col = string.format("%s DESC", column_info.id)
|
||||
order_by = order_by and (order_by .. ", " .. order_col) or order_col
|
||||
-- Also for each sort, add a condition where the sorting column MUST not be 0
|
||||
where = string.format("%s AND (%s > 0)", where, column_info.column_id_no_fun)
|
||||
end
|
||||
|
||||
-- Add first and last_seen to the where
|
||||
|
|
@ -178,7 +180,7 @@ function flow_data_historical.retrieveFlowData(select_columns, where_filters,
|
|||
else
|
||||
results = interface.execInMemoryQuery(query) or {}
|
||||
end
|
||||
-- tprint(results)
|
||||
--tprint(results)
|
||||
|
||||
return results
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue