diff --git a/applications/luci-olsr/luasrc/view/status-olsr/hna.htm b/applications/luci-olsr/luasrc/view/status-olsr/hna.htm index 777fd2dcf5..35dec2d8e3 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/hna.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/hna.htm @@ -15,7 +15,7 @@ $Id$ <%+header%>
<%:destination%> | <%:gateway%> | diff --git a/applications/luci-olsr/luasrc/view/status-olsr/index.htm b/applications/luci-olsr/luasrc/view/status-olsr/index.htm index a38b63a36c..659d1a1a43 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/index.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/index.htm @@ -16,7 +16,7 @@ $Id$
---|
<%:destination%> | <%:local%> | @@ -30,7 +30,7 @@ $Id$ end local color = "#bb3333" - link.ETX = tonumber(link.ETX) + link.ETX = tonumber(link.ETX) or 0 if link.ETX == 0 then color = "#bb3333" elseif link.ETX < 4 then @@ -46,7 +46,7 @@ $Id$<%=link["Local IP"]%> | <%=link.LinkQuality%> | <%=link.NLQ%> | -<%=link.ETX%> | +<%=string.format("%%.3f", link.ETX)%> |
---|
<%:node%> | <%:aliases%> | diff --git a/applications/luci-olsr/luasrc/view/status-olsr/routes.htm b/applications/luci-olsr/luasrc/view/status-olsr/routes.htm index c8785b32cb..6f5b61edbe 100644 --- a/applications/luci-olsr/luasrc/view/status-olsr/routes.htm +++ b/applications/luci-olsr/luasrc/view/status-olsr/routes.htm @@ -15,7 +15,7 @@ $Id$ <%+header%>
---|
<%:destination%> | <%:gateway%> | @@ -42,7 +42,7 @@ $Id$<%=route.Gateway%> | <%=route.Interface%> | <%=route.Metric%> | -<%=route.ETX%> | +<%=string.format("%%.3f", tonumber(route.ETX) or 0)%> |
---|
<%:destination%> | <%:olsr_lasthop%> | @@ -33,7 +33,7 @@ $Id$"><%=route["Last hop IP"]%> | <%=route.LQ%> | <%=route.ILQ%> | -<%=route.ETX%> | +<%=string.format("%%.3f", tonumber(route.ETX) or 0)%> |
---|