summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-olsr/luasrc/view/status-olsr
diff options
context:
space:
mode:
authorBastian Bittorf <bittorf@bluebottle.com>2017-01-10 17:20:54 +0100
committerBastian Bittorf <bittorf@bluebottle.com>2017-01-10 17:23:36 +0100
commitbae82052e0651c4fa256a249b9da07fa15c94ff0 (patch)
tree417b134df5c29c45c2a728b0958b3afabcfd6e2b /applications/luci-app-olsr/luasrc/view/status-olsr
parentcf5d266dffe92b23a97674c5de64b731dae18f37 (diff)
luci-app-olsr: adapt to changed behavior of new OLSRd v0.9.5
controller/olsr.lua: drop HTTP-headers which are now emitted, we do not need them status-olsr/neighbors.htm: olsr ETX value now without muliplication 1024x Signed-off-by: Bastian Bittorf <bb@npl.de> Signed-off-by: Freifunk UFO <ufo@rund.freifunk.net>
Diffstat (limited to 'applications/luci-app-olsr/luasrc/view/status-olsr')
-rw-r--r--applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm b/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm
index 31dd7d05a..c077c2048 100644
--- a/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm
+++ b/applications/luci-app-olsr/luasrc/view/status-olsr/neighbors.htm
@@ -12,8 +12,8 @@ local i = 1
if luci.http.formvalue("status") == "1" then
local rv = {}
for k, link in ipairs(links) do
- link.linkCost = tonumber(link.linkCost)/1024 or 0
- if link.linkCost == 4096 then
+ link.linkCost = tonumber(link.linkCost) or 0
+ if link.linkCost == 4194304 then
link.linkCost = 0
end
local color = olsrtools.etx_color(link.linkCost)
@@ -129,8 +129,8 @@ end
<tbody id="olsr_neigh_table">
<% local i = 1
for k, link in ipairs(links) do
- link.linkCost = tonumber(link.linkCost)/1024 or 0
- if link.linkCost == 4096 then
+ link.linkCost = tonumber(link.linkCost) or 0
+ if link.linkCost == 4194304 then
link.linkCost = 0
end