mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
QoE improvements
This commit is contained in:
parent
ea6d266c52
commit
2630523059
2 changed files with 10 additions and 5 deletions
|
|
@ -348,12 +348,12 @@ end
|
|||
function formatQoE(qoe)
|
||||
local value = qoe.qoe_score
|
||||
|
||||
if(value > 100) then label = "" -- Unknown QoE
|
||||
if((value == 0) or (value > 100)) then label = "" -- Unknown QoE
|
||||
elseif(value > 90) then label = i18n("flow_details.qoe_excellent", { value = value })
|
||||
elseif(value > 75) then label = i18n("flow_details.qoe_good", { value = value })
|
||||
elseif(value > 60) then label = i18n("flow_details.qoe_fair", { value = value })
|
||||
elseif(value > 50) then label = i18n("flow_details.qoe_degraded", { value = value })
|
||||
else label = i18n("flow_details.qoe_poor", { value = value })
|
||||
else label = i18n("flow_details.qoe_poor", { value = value })
|
||||
end
|
||||
|
||||
if(#qoe.issues > 0) then
|
||||
|
|
@ -365,7 +365,7 @@ function formatQoE(qoe)
|
|||
|
||||
label = label .. "\n</ul>\n"
|
||||
end
|
||||
|
||||
|
||||
return(label)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue