Fix not detecting temperature properly
This commit is contained in:
parent
901128d8ca
commit
4b0074d498
1 changed files with 1 additions and 2 deletions
|
@ -26,11 +26,10 @@ try:
|
|||
link.open()
|
||||
time.sleep(2)
|
||||
|
||||
# GPUtil setup
|
||||
gpus = GPUtil.getGPUs()
|
||||
|
||||
while True:
|
||||
time.sleep(1)
|
||||
gpus = GPUtil.getGPUs()
|
||||
temp = max(gpu.temperature for gpu in gpus)
|
||||
|
||||
speed = int(((temp - 40) / 40) * 100)
|
||||
|
|
Loading…
Reference in a new issue