Updated OLSR page
authorSteven Barth <steven@midlink.org>
Sun, 17 Aug 2008 20:19:50 +0000 (20:19 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 17 Aug 2008 20:19:50 +0000 (20:19 +0000)
applications/luci-olsr/luasrc/controller/olsr.lua

index 1eede4464990ff087b543a63d44d43743eeb233b..d478df058dba30493b26da42da25812e48c78cdb 100644 (file)
@@ -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