luci-mod-admin-full: allow a wider range of DSL SNR margins
authorJo-Philipp Wich <jo@mein.io>
Tue, 2 Jan 2018 17:26:16 +0000 (18:26 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 20 Jul 2018 07:30:34 +0000 (09:30 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit dbb694c699f80f387c61d531cb3e8de2608edbec)

modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua

index a804d8eeac8b20fd1f7d29e4aabf8e3d29701bf3..8cbca1f8c8cc9cb3a0e090f95de7481d9c54efb3 100644 (file)
@@ -48,8 +48,8 @@ if fs.access("/etc/init.d/dsl_control") then
 
        ds_snr = dsl:option(ListValue, "ds_snr_offset", translate("Downstream SNR offset"))
        ds_snr:depends("line_mode", "adsl")
-       for i = -50, 50, 5 do
-               ds_snr:value(i, translate("%.1f dB" %{ i / 10} ))
+       for i = -100, 100, 5 do
+               ds_snr:value(i, translatef("%.1f dB", i / 10))
        end
 
        firmware = dsl:option(Value, "firmware", translate("Firmware File"))