mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Fixes missing active flows title (#6849)
This commit is contained in:
parent
51425a688d
commit
e9c97ee089
2 changed files with 6 additions and 5 deletions
|
|
@ -359,16 +359,16 @@ print[[
|
|||
}
|
||||
|
||||
if(rsp.num_flows > 0 && (!systemInterfaceEnabled)) {
|
||||
msg += "<a href=\"]] print (ntop.getHttpPrefix()) print [[/lua/flows_stats.lua\">";
|
||||
|
||||
msg += "<a href=\"]] print (ntop.getHttpPrefix()) print [[/lua/flows_stats.lua\">";
|
||||
const flows_label = "]] print(i18n("live_flows")) print[["
|
||||
if (rsp.flows_pctg < alarm_threshold_low) {
|
||||
msg += "<span class=\"badge bg-secondary\">";
|
||||
msg += "<span title=\"" + flows_label +"\" class=\"badge bg-secondary\">";
|
||||
} else if(rsp.flows_pctg < alarm_threshold_high) {
|
||||
alert = 1;
|
||||
msg += "<span class=\"badge bg-warning\">";
|
||||
msg += "<span title=\"" + flows_label +"\" class=\"badge bg-warning\">";
|
||||
} else {
|
||||
alert = 1;
|
||||
msg += "<span class=\"badge bg-danger\">";
|
||||
msg += "<span title=\"" + flows_label +"\" class=\"badge bg-danger\">";
|
||||
}
|
||||
|
||||
msg += NtopUtils.formatValue(rsp.num_flows, 1)+" <i class=\"fas fa-stream\"></i> </span> </a>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue