fix bug where unmonitored gpus contribute to fan speed

This commit is contained in:
uvos 2024-01-11 19:29:02 +01:00
parent 2aa8d88f32
commit ef6b0c7d4b

View File

@ -81,10 +81,10 @@ double gpu_fan_zone(const std::vector<Sensor>& sensors)
{ {
if(sensor.chip == gpu.first) if(sensor.chip == gpu.first)
{ {
if(max_temp < sensor.reading)
max_temp = sensor.reading;
gpu.second = true; gpu.second = true;
} }
if(max_temp < sensor.reading)
max_temp = sensor.reading;
} }
} }
} }
@ -97,7 +97,7 @@ double gpu_fan_zone(const std::vector<Sensor>& sensors)
} }
} }
return fan_curve(max_temp, 0.10, 1.0, 45, 75); return fan_curve(max_temp, 0.05, 1.0, 45, 75);
} }
double system_fan_zone(const std::vector<Sensor>& sensors) double system_fan_zone(const std::vector<Sensor>& sensors)