aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-04-09 10:25:20 +0000
committerJohn Crispin <john@openwrt.org>2016-04-09 10:25:20 +0000
commit7beb53b1a57025c5a379bc845b8ecc90fdefbab1 (patch)
tree941d32ea2b2a05a8e6f10ee7e9b0d70866e79415 /target
parent9ef282cd9695f13f88a2a563fcfd6164b4d7ca18 (diff)
downloadupstream-7beb53b1a57025c5a379bc845b8ecc90fdefbab1.tar.gz
upstream-7beb53b1a57025c5a379bc845b8ecc90fdefbab1.tar.bz2
upstream-7beb53b1a57025c5a379bc845b8ecc90fdefbab1.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> SVN-Revision: 49135
Diffstat (limited to 'target')
-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