Revert CPU cache
This commit is contained in:
parent
7c6fcb789f
commit
aa18135b24
9
neofetch
9
neofetch
|
@ -839,13 +839,8 @@ getcpu () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
if [ -f "/Library/Caches/neofetch/cpu" ]; then
|
cpu="$(sysctl -n machdep.cpu.brand_string)"
|
||||||
source "/Library/Caches/neofetch/cpu"
|
cores=$(sysctl -n hw.ncpu)
|
||||||
else
|
|
||||||
cpu="$(sysctl -n machdep.cpu.brand_string)"
|
|
||||||
cores=$(sysctl -n hw.ncpu)
|
|
||||||
cache "cpu" "$cpu" "/Library/Caches/"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*"BSD" | "Windows")
|
*"BSD" | "Windows")
|
||||||
|
|
Reference in New Issue