diff mbox

[OpenWrt-Devel,1/3] lantiq-dsl: bugfix db negative sign after comma

Message ID 1460020107-9042-1-git-send-email-feckert@tdt.de
State Accepted
Headers show

Commit Message

Florian Eckert April 7, 2016, 9:08 a.m. UTC
From: Florian Eckert <Eckert.Florian@googlemail.com>

If db is negative minus sign was shown after comma

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
---
 target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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 aefefcd..adf245a 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