xbmc: change detection of GPU temperature because of a format change in output of nvidia-smi, thanks to gilphilbert and xe`

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-02-28 15:53:55 +01:00
parent 4950cfdc7a
commit 859a84f5b8

View File

@ -23,7 +23,7 @@
TEMP="0"
if lspci -n | grep 0300 | grep -q 10de; then
[ -f /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -a | grep 'Temperature' | awk '{print $3}'`
[ -f /usr/bin/nvidia-smi ] && TEMP=`/usr/bin/nvidia-smi -q -x | grep 'gpu_temp' | awk '{ print $1 }' | sed 's,<gpu_temp>,,g'`
fi
echo "${TEMP} C"