summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/view
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-05 16:27:31 +0000
committerSteven Barth <steven@midlink.org>2008-07-05 16:27:31 +0000
commitbbe086c9ce76c6abbc26434462736bb8b42f2a6c (patch)
tree9c7240c842577580d36202c6455dd89e6b39598c /applications/luci-olsr/luasrc/view
parent2edc50aa4398d83d761fe67d7681d0316c457127 (diff)
applications/luci-olsr: Fixed to work with 0.5.6
Diffstat (limited to 'applications/luci-olsr/luasrc/view')
-rw-r--r--applications/luci-olsr/luasrc/view/status-olsr/index.htm3
-rw-r--r--applications/luci-olsr/luasrc/view/status-olsr/topology.htm6
2 files changed, 8 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/view/status-olsr/index.htm b/applications/luci-olsr/luasrc/view/status-olsr/index.htm
index dabacd15a..70329e76b 100644
--- a/applications/luci-olsr/luasrc/view/status-olsr/index.htm
+++ b/applications/luci-olsr/luasrc/view/status-olsr/index.htm
@@ -11,6 +11,9 @@
<th>ETX</th>
</tr>
<% for k, link in ipairs(links) do
+ if link.Linkcost then
+ link.LinkQuality, link.NLQ, link.ETX = link.Linkcost:match("(.*)/(.*)\t(.*)")
+ end
local color = "#bb3333"
link.ETX = tonumber(link.ETX)
diff --git a/applications/luci-olsr/luasrc/view/status-olsr/topology.htm b/applications/luci-olsr/luasrc/view/status-olsr/topology.htm
index 6ad9f5c67..7871e133e 100644
--- a/applications/luci-olsr/luasrc/view/status-olsr/topology.htm
+++ b/applications/luci-olsr/luasrc/view/status-olsr/topology.htm
@@ -9,7 +9,11 @@
<th>ILQ</th>
<th>ETX</th>
</tr>
-<% for k, route in ipairs(routes) do %>
+<% for k, route in ipairs(routes) do
+ if route.Linkcost then
+ route.LQ, route.ILQ, route.ETX = route.Linkcost:match("(.*)/(.*)\t(.*)")
+ end
+%>
<tr>
<td><a href="http://<%=route["Destination IP"]%>"><%=route["Destination IP"]%></a></td>
<td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>