mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
When QoE is out of 0-100 range no label is returned
This commit is contained in:
parent
9bc9419f4a
commit
af5e4c13bc
1 changed files with 2 additions and 1 deletions
|
|
@ -345,7 +345,8 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function formatQoE(value)
|
||||
if(value > 90) then label = i18n("flow_details.qoe_excellent", { value = value })
|
||||
if(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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue