Skip to content

Commit ff32fb1

Browse files
committed
Fix linter issues
1 parent 9d2fa7d commit ff32fb1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nsight/thermovision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _get_gpu_tlimit(self) -> int | None:
245245
Thermal headroom in degrees Celsius, or None if not supported
246246
"""
247247
try:
248-
self.device.temperature.margin
248+
return self.device.temperature.margin
249249
except system.NotSupportedError as e:
250250
print("Error: GPU does not support temperature limit retrieval:", e)
251251
return None
@@ -258,7 +258,7 @@ def _get_gpu_temp(self) -> int:
258258
Returns:
259259
GPU temperature in degrees Celsius
260260
"""
261-
return self.device.temperature.sensor(system.TemperatureSensors.TEMPERATURE_GPU)
261+
return int(self.device.temperature.sensor(system.TemperatureSensors.TEMPERATURE_GPU))
262262

263263
def _is_temp_retrieval_supported(self) -> bool:
264264
"""Check if GPU supports temperature retrieval.

0 commit comments

Comments
 (0)