summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-17 20:19:50 +0000
committerSteven Barth <steven@midlink.org>2008-08-17 20:19:50 +0000
commit4f2bf621beff771fb069b31880be36c13ef76c4c (patch)
treedf0d6cf77b16612057557e839b63a2f1577a594b /applications/luci-olsr
parenta966a3b2b4bbd5e4eae1a01b36e2bf44033318b9 (diff)
Updated OLSR page
Diffstat (limited to 'applications/luci-olsr')
-rw-r--r--applications/luci-olsr/luasrc/controller/olsr.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua
index 1eede4464..d478df058 100644
--- a/applications/luci-olsr/luasrc/controller/olsr.lua
+++ b/applications/luci-olsr/luasrc/controller/olsr.lua
@@ -167,6 +167,13 @@ function fetch_txtinfo(otable)
for k, key in pairs(keys) do
data[name][j][key] = fields[k]
end
+
+ if data[name][j].Linkcost then
+ data[name][j].LinkQuality,
+ data[name][j].NLQ,
+ data[name][j].ETX =
+ data[name][j].Linkcost:match("(.*)/(.*)\t(.*)")
+ end
end
end