applications/luci-olsr: sync colors with map, add legend
This commit is contained in:
parent
e2bc45289e
commit
f13dd6c052
2 changed files with 7 additions and 3 deletions
|
@ -16,11 +16,11 @@ function etx_color(etx)
|
||||||
local color = "#bb3333"
|
local color = "#bb3333"
|
||||||
if etx == 0 then
|
if etx == 0 then
|
||||||
color = "#bb3333"
|
color = "#bb3333"
|
||||||
elseif etx < 4 then
|
elseif etx < 2 then
|
||||||
color = "#00cc00"
|
color = "#00cc00"
|
||||||
elseif etx < 10 then
|
elseif etx < 4 then
|
||||||
color = "#ffcb05"
|
color = "#ffcb05"
|
||||||
elseif etx < 100 then
|
elseif etx < 10 then
|
||||||
color = "#ff6600"
|
color = "#ff6600"
|
||||||
end
|
end
|
||||||
return color
|
return color
|
||||||
|
|
|
@ -147,6 +147,10 @@ end
|
||||||
<li><strong>LQ: </strong><%:Success rate of packages received from the neighbour%></li>
|
<li><strong>LQ: </strong><%:Success rate of packages received from the neighbour%></li>
|
||||||
<li><strong>NLQ: </strong><%:Success rate of packages sent to the neighbour%></li>
|
<li><strong>NLQ: </strong><%:Success rate of packages sent to the neighbour%></li>
|
||||||
<li><strong>ETX: </strong><%:Expected retransmission count%></li>
|
<li><strong>ETX: </strong><%:Expected retransmission count%></li>
|
||||||
|
<li><strong><span style="color:#00cc00"><%:Green%></span></strong>:<%:Very good (ETX < 2)%></li>
|
||||||
|
<li><strong><span style="color:#ffcb05"><%:Yellow%></span></strong>:<%:Good (2 < ETX < 4)%></li>
|
||||||
|
<li><strong><span style="color:#ff6600"><%:Orange%></span></strong>:<%:Still usable (4 < ETX < 10)%></li>
|
||||||
|
<li><strong><span style="color:#bb3333"><%:Red%></span></strong>:<%:Bad (ETX > 10)%></li>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<%+footer%>
|
<%+footer%>
|
||||||
|
|
Loading…
Reference in a new issue