Ver Fonte

Uses LC_ALL=C free -m instead (#2643)

Jaap Marcus há 3 anos atrás
pai
commit
150f64a01f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      bin/v-update-sys-rrd-mem

+ 1 - 1
bin/v-update-sys-rrd-mem

@@ -64,7 +64,7 @@ fi
 
 
 # Parsing data
 # Parsing data
 if [ "$period" = 'daily' ]; then
 if [ "$period" = 'daily' ]; then
-    mem=$(free -m)
+    mem=$(LC_ALL=C free -m)
     used=$(echo "$mem" |grep Mem |awk '{print $3}')
     used=$(echo "$mem" |grep Mem |awk '{print $3}')
     if [ -z "$(echo "$mem" | grep available)" ]; then
     if [ -z "$(echo "$mem" | grep available)" ]; then
         free=$(echo "$mem" |grep buffers/cache |awk '{print $4}')
         free=$(echo "$mem" |grep buffers/cache |awk '{print $4}')