From a6234846e3273b0df88d9ee71fa1652fb0021793 Mon Sep 17 00:00:00 2001 From: Bogdan Tintor Date: Thu, 8 Aug 2024 14:27:37 +0200 Subject: [PATCH] GPU memory usage hotfix (function should return float in range 1-100 - percents of usage). --- coretex/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coretex/statistics.py b/coretex/statistics.py index 12a8a4fd..20b62a3d 100644 --- a/coretex/statistics.py +++ b/coretex/statistics.py @@ -99,7 +99,7 @@ def getGpuMemoryUsage() -> float: logging.getLogger("coretexpylib").debug(">> [Coretex] Failed to extract gpu memory usage metric") return 0 - return float(memory.used / memory.total) + return float(memory.used / memory.total * 100) def getGpuTemperature() -> float: