From eaf4e1f5109ffbad378253061d8af26159725367 Mon Sep 17 00:00:00 2001 From: Christoph Borchert Date: Tue, 16 Jun 2015 12:28:15 +0200 Subject: [PATCH] client.sh: run 'free' command in english to allow parsing its output Change-Id: I2aa2d5733f52b4ed8abf9d619bca733fbabb5389 --- scripts/client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/client.sh b/scripts/client.sh index 3bf0a404..19f0cb20 100755 --- a/scripts/client.sh +++ b/scripts/client.sh @@ -43,7 +43,7 @@ do fi # only start a client if at least 500 MiB is available - FREE_MEM=$(free -m | grep "buffers/cache:" | awk '{print $4}') + FREE_MEM=$(LC_ALL=C free -m | grep "buffers/cache:" | awk '{print $4}') if [ $FREE_MEM -lt "500" ]; then # waiting for free memory. sleep 1-60s and retry. sleep $(($RANDOM / (32768 / 60) + 1))