From 4b0074d498f7f954243748713be55f2c71523b40 Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 25 Oct 2022 18:56:46 -0500 Subject: [PATCH] Fix not detecting temperature properly --- Python/tx_speed.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Python/tx_speed.py b/Python/tx_speed.py index fdf3944..b0b82fd 100644 --- a/Python/tx_speed.py +++ b/Python/tx_speed.py @@ -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)