GPU: Disable caching on all systems but macOS. Fixes #509
This commit is contained in:
parent
461a5692ac
commit
8f0bb0fcd3
3
neofetch
3
neofetch
|
@ -971,6 +971,7 @@ get_gpu() {
|
||||||
gpu="$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')"
|
gpu="$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')"
|
||||||
gpu="${gpu//'/ $'}"
|
gpu="${gpu//'/ $'}"
|
||||||
gpu="${gpu%,*}"
|
gpu="${gpu%,*}"
|
||||||
|
cache "gpu" "$gpu"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"iPhone OS")
|
"iPhone OS")
|
||||||
|
@ -1035,8 +1036,6 @@ get_gpu() {
|
||||||
gpu="${gpu/NVIDIA}"
|
gpu="${gpu/NVIDIA}"
|
||||||
gpu="${gpu/Intel}"
|
gpu="${gpu/Intel}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cache "gpu" "$gpu"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get_memory() {
|
get_memory() {
|
||||||
|
|
Reference in New Issue