diff options
Diffstat (limited to 'applications/luci-olsr/luasrc/view/status-olsr/topology.htm')
-rw-r--r-- | applications/luci-olsr/luasrc/view/status-olsr/topology.htm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/view/status-olsr/topology.htm b/applications/luci-olsr/luasrc/view/status-olsr/topology.htm index 6ad9f5c673..7871e133e3 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> |