Fix gpu_info

This commit is contained in:
q3aql 2025-05-11 10:23:12 +02:00
parent 127bfd0963
commit bb09789e87

View File

@ -6,10 +6,10 @@ if [ -z "${check_sensor}" ] ; then
if [ -z "${check_sensor}" ] ; then if [ -z "${check_sensor}" ] ; then
echo "N/A°C" echo "N/A°C"
else else
TEMP=$(sensors | grep 'Package id 0:\|edge' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '+[0-9]*.[0-9]*°C' -o) TEMP=$(sensors | grep 'Package id 0:\|junction' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '+[0-9]*.[0-9]*°C' -o)
echo "$TEMP" echo "$TEMP"
fi fi
else else
TEMP=$(sensors | grep 'Package id 0:\|junction' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '+[0-9]*.[0-9]*°C' -o) TEMP=$(sensors | grep 'Package id 0:\|edge' | grep ':[ ]*+[0-9]*.[0-9]*°C' -o | grep '+[0-9]*.[0-9]*°C' -o)
echo "$TEMP" echo "$TEMP"
fi fi