gpu [linux]: Add clock speed

This commit is contained in:
Dylan Araps 2017-12-23 22:28:13 +11:00
parent 0e59d6c041
commit efa9ff6726

View file

@ -1225,7 +1225,6 @@ get_gpu() {
[[ "$gpu_type" == "integrated" && ! "$gpu" =~ (i|I)ntel ]] && \ [[ "$gpu_type" == "integrated" && ! "$gpu" =~ (i|I)ntel ]] && \
{ unset -v gpu; continue; } { unset -v gpu; continue; }
case "$gpu" in case "$gpu" in
*"advanced"*) *"advanced"*)
gpu="${gpu/'[AMD/ATI]' }" gpu="${gpu/'[AMD/ATI]' }"
@ -1269,10 +1268,7 @@ get_gpu() {
gpu="${gpu/Intel }" gpu="${gpu/Intel }"
fi fi
prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu" prin "${subtitle:+${subtitle}${gpu_name}}" "$gpu ${freq:+@ ${freq}Mhz}"
[[ "${gpu_freq:-on}" == "on" && "$freq" ]] && \
prin "GPU Frequency" "${freq}Mhz"
((++gpu_num)) ((++gpu_num))
done done