Update gpu.py

This commit is contained in:
Johnny
2024-11-02 22:01:34 +01:00
committed by GitHub
parent 04ad589e9d
commit 59d33f25c5
+1 -1
View File
@@ -294,7 +294,7 @@ class CGPUInfo:
return self.pynvml.nvmlDeviceGetTemperature(deviceHandle, self.pynvml.NVML_TEMPERATURE_GPU)
elif self.jtopLoaded:
try:
temperature = self.jtopInstance.stats.get('Temp GPU', -1)
temperature = self.jtopInstance.temperature.get('GPU', -1)
return temperature
except Exception as e:
logger.error('Could not get GPU temperature. ' + str(e))