From e0fb13c39170eda8e851d4e7bf829b890218166b Mon Sep 17 00:00:00 2001 From: Johnny Date: Tue, 11 Mar 2025 19:03:46 +0100 Subject: [PATCH] Update gpu.py --- general/gpu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/general/gpu.py b/general/gpu.py index 7e012f1..cd759b7 100644 --- a/general/gpu.py +++ b/general/gpu.py @@ -278,8 +278,8 @@ class CGPUInfo: elif self.jtopLoaded: mem_data = self.jtopInstance.memory['RAM'] total = mem_data['tot'] - shared = mem_data['shared'] - return {'total': total, 'used': shared} + used = mem_data['used'] + return {'total': total, 'used': used} else: return {'total': 1, 'used': 1}