diff options
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 c0a7f5fe6b..c80a75cc1e 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) |