Simplify cpu core

This commit is contained in:
Dylan Araps 2016-08-26 12:21:32 +10:00
parent 5e32fc6461
commit 93715fb4a9

View file

@ -576,7 +576,7 @@ getcpu() {
speed="$((speed / 100))"
fi
cores="$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)"
cores="$(grep -c ^processor /proc/cpuinfo)"
# Fix for speeds under 1ghz
if [ -z "${speed:1}" ]; then