summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2012-12-01 00:07:33 +0000
committerManuel Munz <freifunk@somakoma.de>2012-12-01 00:07:33 +0000
commitf13dd6c0523aec82879fb85f4d2fc1851340b563 (patch)
treed7c458491b1b84b507d278cf10e825a94d24b315 /applications/luci-olsr
parente2bc45289e6e83611e98a9d224dfe85178718216 (diff)
applications/luci-olsr: sync colors with map, add legend
Diffstat (limited to 'applications/luci-olsr')
-rw-r--r--applications/luci-olsr/luasrc/tools/olsr.lua6
-rw-r--r--applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm4
2 files changed, 7 insertions, 3 deletions
diff --git a/applications/luci-olsr/luasrc/tools/olsr.lua b/applications/luci-olsr/luasrc/tools/olsr.lua
index 45501020a..425d09a31 100644
--- a/applications/luci-olsr/luasrc/tools/olsr.lua
+++ b/applications/luci-olsr/luasrc/tools/olsr.lua
@@ -16,11 +16,11 @@ function etx_color(etx)
local color = "#bb3333"
if etx == 0 then
color = "#bb3333"
- elseif etx < 4 then
+ elseif etx < 2 then
color = "#00cc00"
- elseif etx < 10 then
+ elseif etx < 4 then
color = "#ffcb05"
- elseif etx < 100 then
+ elseif etx < 10 then
color = "#ff6600"
end
return color
diff --git a/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm b/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm
index 029f58547..669ddc20c 100644
--- a/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm
+++ b/applications/luci-olsr/luasrc/view/status-olsr/neighbors.htm
@@ -147,6 +147,10 @@ end
<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>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>
</fieldset>
<%+footer%>