From: Jo-Philipp Wich Date: Mon, 23 Nov 2009 08:17:25 +0000 (+0000) Subject: modules/niu: convert MHz to GHz in channel selection X-Git-Tag: 0.10.0~926 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8163cc8e67495af36e38945394234f3beb653d29;p=oweals%2Fluci.git modules/niu: convert MHz to GHz in channel selection --- diff --git a/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua b/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua index 8df31e82d..c1341db01 100644 --- a/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua +++ b/modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua @@ -51,7 +51,7 @@ s:tab("general", translate("General Settings")) ch = s:taboption("general", Value, "channel", translate("Channel")) ch:value("auto", translate("automatic")) for _, f in ipairs(chan) do - ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz }) + ch:value(f.channel, "%i (%.3f GHz)" %{ f.channel, f.mhz / 1000 }) end