Skip to content

Commit

Permalink
Merge pull request #245 from bogdant36/gpu-metric-hotfix
Browse files Browse the repository at this point in the history
GPU memory usage hotfix (function should return float in range 1-100 …
  • Loading branch information
dule1322 authored Aug 8, 2024
2 parents 584abff + a623484 commit 61d7023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coretex/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 61d7023

Please sign in to comment.