Adds description to elephant flows and exclude data transfer protocols

Fixes #2402
This commit is contained in:
Simone Mainardi 2019-02-20 15:28:21 +01:00
parent 8d3151708f
commit e7cebdcd98
3 changed files with 6 additions and 1 deletions

View file

@ -2518,6 +2518,8 @@ function formatElephantFlowAlert(flowstatus_info, local2remote)
end
end
res = string.format("%s<sup><i class='fa fa-info-circle' aria-hidden='true' title='"..i18n("flow_details.elephant_flow_descr").."'></i></sup>", res)
if threshold ~= "" then
res = string.format("%s [%s]", res, i18n("flow_details.elephant_exceeded", {vol = bytesToSize(threshold)}))
end