From 845d8c0e6329813a6841f42ee1a7c41fbd1bc50e Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 13 Jan 2017 12:59:49 +0100 Subject: [PATCH] Ensure LC_NUMERIC=C is set when evaluating floating point number (non-English systems might expect "," as decimal separator --- advanced/Scripts/chronometer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index b6fec8dc..93b0cbb1 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -57,7 +57,7 @@ normalChrono() { domains=$(printf "%'.f" $(GetJSONValue ${json} "domains_being_blocked")) #add commas in queries=$(printf "%'.f" $(GetJSONValue ${json} "dns_queries_today")) blocked=$(printf "%'.f" $(GetJSONValue ${json} "ads_blocked_today")) - percentage=$(printf "%0.2f\n" $(GetJSONValue ${json} "ads_percentage_today")) #2 decimal places + LC_NUMERIC=C percentage=$(printf "%0.2f\n" $(GetJSONValue ${json} "ads_percentage_today")) #2 decimal places echo "Blocking: ${domains}" echo "Queries: ${queries}"