aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2016-04-09 10:25:20 +0000
committerJohn Crispin <blogic@openwrt.org>2016-04-09 10:25:20 +0000
commit205a04ad5e63f15a1c1786c64bbec8c1e12b5e38 (patch)
treef54430e665a20840f138d7e7fca1f8ebec70664a /target/linux/lantiq
parenta9a032b4095fe30fb31131e23a9a7e2660b3db36 (diff)
downloadmaster-187ad058-205a04ad5e63f15a1c1786c64bbec8c1e12b5e38.tar.gz
master-187ad058-205a04ad5e63f15a1c1786c64bbec8c1e12b5e38.tar.bz2
master-187ad058-205a04ad5e63f15a1c1786c64bbec8c1e12b5e38.zip
lantiq-dsl: bugfix db negative sign after comma
If db is negative minus sign was shown after comma Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49135 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq')
-rwxr-xr-xtarget/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh2
1 files changed, 1 insertions, 1 deletions
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