mirror of https://github.com/aredn/aredn.git
Fix quality error messages (#1202)
* Handle null snr and qualities * Fix quality message
This commit is contained in:
parent
3d3dbc5040
commit
7536b66aca
|
@ -862,15 +862,25 @@ do
|
||||||
elseif track.blocks.dup then
|
elseif track.blocks.dup then
|
||||||
c1 = c1 .. " <small>(" .. type .. "blocked dup)</small>"
|
c1 = c1 .. " <small>(" .. type .. "blocked dup)</small>"
|
||||||
elseif track.blocks.quality then
|
elseif track.blocks.quality then
|
||||||
if not track.ping_quality or track.tx_quality < track.ping_quality then
|
if track.ping_quality then
|
||||||
|
if track.tx_quality then
|
||||||
|
if track.tx_quality < track.ping_quality then
|
||||||
c1 = c1 .. " <small>(" .. type .. "blocked retries)</small>"
|
c1 = c1 .. " <small>(" .. type .. "blocked retries)</small>"
|
||||||
else
|
else
|
||||||
c1 = c1 .. " <small>(" .. type .. "blocked latency)</small>"
|
c1 = c1 .. " <small>(" .. type .. "blocked latency)</small>"
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
c1 = c1 .. " <small>(" .. type .. "blocked latency)</small>"
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if track.tx_quality then
|
||||||
|
c1 = c1 .. " <small>(" .. type .. "blocked retries)</small>"
|
||||||
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
c1 = c1 .. " <small>(" .. type .. "blocked)</small>"
|
c1 = c1 .. " <small>(" .. type .. "blocked)</small>"
|
||||||
end
|
end
|
||||||
if track.snr > 0 then
|
if track.snr then
|
||||||
c4b = track.snr
|
c4b = track.snr
|
||||||
if track.rev_snr then
|
if track.rev_snr then
|
||||||
c4b = c4b .. "/" .. track.rev_snr
|
c4b = c4b .. "/" .. track.rev_snr
|
||||||
|
|
Loading…
Reference in New Issue