diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-13 17:51:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-13 17:51:03 +0000 |
commit | bedf65aed20be9e24d6aa3b8eda56e009011b906 (patch) | |
tree | b8f28eb25772efe3f052122f9f3681438b5da172 /applications/luci-olsr/luasrc/controller | |
parent | db04fffe1384721c00d671c0fe069cd26ebd0866 (diff) |
* luci/app-olsr: fix olsr status pages
Diffstat (limited to 'applications/luci-olsr/luasrc/controller')
-rw-r--r-- | applications/luci-olsr/luasrc/controller/olsr.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua index c0a7f5fe6..c80a75cc1 100644 --- a/applications/luci-olsr/luasrc/controller/olsr.lua +++ b/applications/luci-olsr/luasrc/controller/olsr.lua @@ -72,8 +72,8 @@ function action_index() end local function compare(a, b) - local c = tonumber(a.ETX) - local d = tonumber(b.ETX) + local c = tonumber(a.Cost) + local d = tonumber(b.Cost) if not c or c == 0 then return false @@ -128,7 +128,7 @@ function action_topology() end local function compare(a, b) - return a["Destination IP"] < b["Destination IP"] + return a["Dest. IP"] < b["Dest. IP"] end table.sort(data.Topology, compare) @@ -145,7 +145,7 @@ function action_hna() end local function compare(a, b) - return a.Network < b.Network + return a.Destination < b.Destination end table.sort(data.HNA, compare) @@ -162,7 +162,7 @@ function action_mid() end local function compare(a, b) - return a.IP < b.IP + return a["IP address"] < b["IP address"] end table.sort(data.MID, compare) |