From 7f3b716432a519ba0f49ef10a679ba09088d8e13 Mon Sep 17 00:00:00 2001 From: bkbilly Date: Wed, 11 Oct 2023 01:38:51 +0300 Subject: [PATCH] Fix name attribute of GPU --- lnxlink/modules/gpu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnxlink/modules/gpu.py b/lnxlink/modules/gpu.py index c237f9e..09262b0 100644 --- a/lnxlink/modules/gpu.py +++ b/lnxlink/modules/gpu.py @@ -32,7 +32,7 @@ def get_info(self): for gpu_id in range(self.gpu_ids["amd"]): amd_gpu = pyamdgpuinfo.get_gpu(gpu_id) gpus[f"amd_{gpu_id}"] = { - "name": amd_gpu.name, + "Name": amd_gpu.name, "VRAM usage": amd_gpu.query_vram_usage(), "GTT usage": amd_gpu.query_gtt_usage(), "Temperature": amd_gpu.query_temperature(), @@ -45,7 +45,7 @@ def get_info(self): gpu_util = nvidia_gpu.gpu_util gpu_util = self._older_gpu_load(gpu_id, gpu_util) gpus[f"nvidia_{gpu_id}"] = { - "name": nvidia_gpu.name, + "Name": nvidia_gpu.name, "Memory usage": round(nvidia_gpu.mem_util, 1), "load": gpu_util, "Temperature": nvidia_gpu.temperature,