Fix cpu count when process name includes the word processor

This commit is contained in:
Felipe Santos 2024-06-12 10:52:20 -03:00 committed by GitHub
parent 6978140492
commit c4992bc422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ function get_cpus() {
cpus=1 cpus=1
fi fi
else else
cpus=$(grep -c processor /proc/cpuinfo) cpus=$(grep -c ^processor /proc/cpuinfo)
fi fi
printf '%s' "$cpus" printf '%s' "$cpus"