From: Steven Barth Date: Sun, 17 Aug 2008 20:19:50 +0000 (+0000) Subject: Updated OLSR page X-Git-Tag: 0.8.0~380 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=4f2bf621beff771fb069b31880be36c13ef76c4c Updated OLSR page --- 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