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:
emanuele-f 2020-04-07 16:52:59 +02:00
parent ee6927d5b3
commit d0ba121a5e
12 changed files with 76 additions and 204 deletions

View file

@ -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