diff --git a/scripts/cpu_info.sh b/scripts/cpu_info.sh index c5180cd..92cec3b 100755 --- a/scripts/cpu_info.sh +++ b/scripts/cpu_info.sh @@ -4,7 +4,7 @@ get_percent() { case $(uname -s) in Linux) - percent=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}') + percent=$(LC_NUMERIC=en_US.UTF-8 top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}') echo $percent ;;