Commit Graph

11 Commits

Author SHA1 Message Date
Andreas Bachlechner 2c260bb46d Fixes a wrong array size check.
It is not wise to check the end of an array by looking at its content.
A "0" is otherwise used as invalid array entry.
Replaced this usage in nvidiagpu.pm and amgpu.pm by comparing indices with the size directly.
2021-12-20 11:27:06 +01:00
Jordi Sanfeliu ae8985f50a fix indentation #367 2021-12-16 09:42:18 +01:00
Andreas Bachlechner bb294834c2 Fix format 2021-12-10 12:26:41 +01:00
Andreas Bachlechner f16ac2e956 Revert "remove superfluous if lines #367"
This reverts commit 41d5f6eab4.
2021-12-10 12:24:18 +01:00
Jordi Sanfeliu 41d5f6eab4 remove superfluous if lines #367 2021-12-10 11:44:58 +01:00
Jordi Sanfeliu 3bb03e983b fixed some indentations #367 2021-12-10 10:50:16 +01:00
Andreas Bachlechner 00a8ac0cdd Fix more indentations. 2021-12-09 18:22:42 +01:00
Andreas Bachlechner d4adf2d43f Change amdgpu config logic.
- Devices are no independent identigiers in a list.
- Sensors specify the absolute path to the file containing the information.
- Unavailable sensors have to be left blank.
- Some indentations fixes.
2021-12-09 18:02:11 +01:00
Andreas Bachlechner 7782bab86e Update amdgpu sensor order. 2021-12-05 09:23:52 +01:00
Andreas Bachlechner 7d1001a9ed A bit cleanup 2021-12-03 21:26:37 +01:00
Andreas Bachlechner d7815ca313 Add amdgpu.pm 2021-12-03 18:33:55 +01:00