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>
Tue, 2 Jan 2018 17:26:16 +0000 (18:26 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua

index 83fdaadcbb961915d3c375454d9737f10f63cd5f..1cbd181919de0b8bb69c1ed4592d658046824899 100644 (file)
@@ -57,8 +57,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
        end