mathoudebine / turing-smart-screen-python

Unofficial Python system monitor and library for small IPS USB-C displays like Turing Smart Screen or XuanFang
GNU General Public License v3.0
1.16k stars 193 forks source link

Convert `amd_gpu.query_load()` value to a percentage #544

Closed sutaburosu closed 4 months ago

sutaburosu commented 4 months ago

My RX 7800XT usage always showed 0% load. After this change, it shows a more believable figure.

The docstring in pyamdgpuinfo specifies the return value is a float between 0 and 1.

mathoudebine commented 4 months ago

Thanks! Crazy this was not seen before as this code is almost 2 years old. I guess not many people actually use this program with an AMD GPU on Linux?