fix amdgpu fan and voltage for lm_sensors #130

This commit is contained in:
UshakovVasilii
2019-03-31 21:54:00 +03:00
parent 98630647dd
commit 985b5093d8

View File

@@ -54,7 +54,7 @@ var SensorsUtil = class extends CommandLineUtil.CommandLineUtil {
let sensors = [];
for (var chipset in data) {
let gpuFilter = /(radeon|amdgpu|nouveau)/;
if (!data.hasOwnProperty(chipset) || gpuFlag != gpuFilter.test(chipset))
if (!data.hasOwnProperty(chipset) || (gpuFlag != gpuFilter.test(chipset) && sensorType === 'temp'))
continue;
let chipsetSensors = data[chipset]