Simplify cpu core
This commit is contained in:
2
neofetch
2
neofetch
@@ -576,7 +576,7 @@ getcpu() {
|
|||||||
speed="$((speed / 100))"
|
speed="$((speed / 100))"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cores="$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)"
|
cores="$(grep -c ^processor /proc/cpuinfo)"
|
||||||
|
|
||||||
# Fix for speeds under 1ghz
|
# Fix for speeds under 1ghz
|
||||||
if [ -z "${speed:1}" ]; then
|
if [ -z "${speed:1}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user