mirror of
https://github.com/Syllo/nvtop.git
synced 2025-12-23 22:18:41 -05:00
Currently, GPU clocks and GPU memory clocks have the same same field width size in the interface, which is presumed to be in the thousands of MHz. However, memory clocks reported by the GPU can be in the tens of thousands range, presumably to account for memory features such as PAM4 (like on the RTX 4090). This causes the GPU memory clock field to be one byte short when 5 digit clocks are reported, cutting the 'z' from MHz. This commit fixes that by adding a new device_field for the memory clock that's one char longer than the device_field for the GPU clocks, and makes the appropriate changes in usage and calculations that rely on these values.