Skip to content

Commit

Permalink
GPU memory usage hotfix (function should return float in range 1-100 …
Browse files Browse the repository at this point in the history
…- percents of usage).
  • Loading branch information
Bogdan Tintor committed Aug 8, 2024
1 parent 584abff commit a623484
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 a623484

Please sign in to comment.