From bedf65aed20be9e24d6aa3b8eda56e009011b906 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 13 Sep 2008 17:51:03 +0000 Subject: * luci/app-olsr: fix olsr status pages --- applications/luci-olsr/luasrc/controller/olsr.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'applications/luci-olsr/luasrc/controller') 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) -- cgit v1.2.3