[OpenWrt-Devel] [PATCH 1/3] lantiq-dsl: bugfix db negative sign after comma
Florian Eckert
eckert.florian at googlemail.com
Thu Apr 7 05:08:25 EDT 2016
From: Florian Eckert <Eckert.Florian at googlemail.com>
If db is negative minus sign was shown after comma
Signed-off-by: Florian Eckert <Eckert.Florian at googlemail.com>
---
target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list