summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/view/status-olsr/topology.htm
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-olsr/luasrc/view/status-olsr/topology.htm')
-rw-r--r--applications/luci-olsr/luasrc/view/status-olsr/topology.htm2
1 files changed, 1 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 b4221bb80d..d0e85280e2 100644
--- a/applications/luci-olsr/luasrc/view/status-olsr/topology.htm
+++ b/applications/luci-olsr/luasrc/view/status-olsr/topology.htm
@@ -45,7 +45,7 @@ local olsrtools = require "luci.tools.olsr"
<td class="cbi-section-table-cell" style="background-color:<%=color%>"><%=cost%></td>
</tr>
- <% if i == 1 then i = 0 elseif i == 0 then i = 1 end
+ <% i = ((i % 2) + 1)
end %>
</table>
</fieldset>