From: blogic Date: Sat, 9 Apr 2016 10:25:20 +0000 (+0000) Subject: lantiq-dsl: bugfix db negative sign after comma X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=3d11b9ab86616ec3656cfcc01e3e5969bef76bb1;p=openwrt.git lantiq-dsl: bugfix db negative sign after comma If db is negative minus sign was shown after comma Signed-off-by: Florian Eckert git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49135 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh index aefefcd42b..adf245aa3b 100755 --- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh @@ -31,7 +31,7 @@ dsl_string() { dbt() { local a=$(expr $1 / 10) local b=$(expr $1 % 10) - echo "${a}.${b}" + echo "${a}.${b#-}" } # # Take a number and convert to k or meg