From dbb694c699f80f387c61d531cb3e8de2608edbec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 2 Jan 2018 18:26:16 +0100 Subject: luci-mod-admin-full: allow a wider range of DSL SNR margins Signed-off-by: Jo-Philipp Wich --- .../luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-mod-admin-full/luasrc/model/cbi') diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua index 83fdaadcbb..1cbd181919 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua @@ -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 -- cgit v1.2.3