mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Rework flows table update
The update of multiple flows is now performed in a single AJAX request, reducing the performance impact. Closes #3660
This commit is contained in:
parent
ee6927d5b3
commit
d0ba121a5e
12 changed files with 76 additions and 204 deletions
|
|
@ -3539,6 +3539,22 @@ end
|
|||
|
||||
-- ###########################################
|
||||
|
||||
-- To be called inside the flows tableCallback
|
||||
function initFlowsRefreshRows()
|
||||
print[[
|
||||
datatableInitRefreshRows($("#table-flows"), "key_and_hash", 10000, {
|
||||
/* List of rows with trend icons */
|
||||
"column_thpt": ]] print(ternary(getThroughputType() ~= "bps", "fpackets", "bitsToSize")) print[[,
|
||||
"column_bytes": bytesToSize,
|
||||
});
|
||||
|
||||
$("#dt-bottom-details > .float-left > p").first().append('. ]]
|
||||
print(i18n('flows_page.idle_flows_not_listed'))
|
||||
print[[');]]
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
--
|
||||
-- IMPORTANT
|
||||
-- Leave it at the end so it can use the functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue