Skip to content

Commit

Permalink
When QoE is out of 0-100 range no label is returned
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Feb 14, 2025
1 parent 9bc9419 commit af5e4c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lua/modules/lua_utils_print.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit af5e4c1

Please sign in to comment.