chore: Fixed GPU Usage

This commit is contained in:
Afonso Franco 2022-10-31 23:10:18 +00:00
parent 93219b3587
commit 291f22fd63
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4

View file

@ -3,7 +3,7 @@
temp1=50
temp2=90
temp=$(nvidia-smi | grep 'Default' | awk '{print $2}' | sed 's/%//')
temp=$(nvidia-smi | grep 'Default' | awk '{print $13}' | sed 's/%//')
if [ "$temp" -ge "$temp2" ] ; then
echo "Gpu: <fc=#C1514E>$temp</fc>%"