Author: blogic
Date: 2016-04-09 12:25:20 +0200 (Sat, 09 Apr 2016)
New Revision: 49135

Modified:
   trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
Log:
lantiq-dsl: bugfix db negative sign after comma

If db is negative minus sign was shown after comma

Signed-off-by: Florian Eckert <[email protected]>

Modified: trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
===================================================================
--- trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh    
2016-04-09 10:25:16 UTC (rev 49134)
+++ trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh    
2016-04-09 10:25:20 UTC (rev 49135)
@@ -31,7 +31,7 @@
 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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to