diff --git a/scripts/cpu_info.sh b/scripts/cpu_info.sh index c765d16..b96c399 100755 --- a/scripts/cpu_info.sh +++ b/scripts/cpu_info.sh @@ -16,7 +16,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 ;;