Fixed GPU Usage
This commit is contained in:
parent
5ffd4f77f6
commit
9c4d6d9ff8
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
temp1=50
|
temp1=50
|
||||||
temp2=90
|
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
|
if [ "$temp" -ge "$temp2" ] ; then
|
||||||
echo "Gpu: <fc=#C1514E>$temp</fc>%"
|
echo "Gpu: <fc=#C1514E>$temp</fc>%"
|
||||||
|
|
Loading…
Add table
Reference in a new issue