From 809d6003eb03462bfda473fcdcbfa004affa6794 Mon Sep 17 00:00:00 2001 From: Jean-Marie RENOUARD Date: Wed, 19 Aug 2015 09:51:22 +0200 Subject: [PATCH] Issue #104 /proc/meminfo is not language specific. --- mysqltuner.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index ce66b5d..d34312c 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -273,10 +273,10 @@ sub os_setup { } } else { if ($os =~ /Linux/) { - $physical_memory = `LANG=en grep -i memtotal: /proc/meminfo | awk '{print \$2}'` or memerror; + $physical_memory = `grep -i memtotal: /proc/meminfo | awk '{print \$2}'` or memerror; $physical_memory*=1024; - $swap_memory = `LANG=en grep -i swaptotal: /proc/meminfo | awk '{print \$2}'` or memerror; + $swap_memory = `grep -i swaptotal: /proc/meminfo | awk '{print \$2}'` or memerror; $swap_memory*=1024; } elsif ($os =~ /Darwin/) { $physical_memory = `sysctl -n hw.memsize` or memerror;