projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-app-olsr: adapt to changed behavior of new OLSRd v0.9.5
[project/luci.git]
/
applications
/
luci-app-olsr
/
luasrc
/
view
/
status-olsr
/
neighbors.htm
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
31dd7d0
..
c077c20
100644
(file)
--- 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
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 == 4
096
then
+ link.linkCost = tonumber(link.linkCost) or 0
+ if link.linkCost == 4
194304
then
link.linkCost = 0
end
local color = olsrtools.etx_color(link.linkCost)
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
<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 == 4
096
then
+ link.linkCost = tonumber(link.linkCost) or 0
+ if link.linkCost == 4
194304
then
link.linkCost = 0
end
link.linkCost = 0
end