1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Limit fanspeed to 85% properly when temperature is below overheat levels.

This commit is contained in:
Con Kolivas 2011-09-05 08:33:00 +10:00
parent 40491cd537
commit ee06a3baca

2
adl.c
View File

@ -734,6 +734,8 @@ void gpu_autotune(int gpu)
if (opt_debug) if (opt_debug)
applog(LOG_DEBUG, "Temperature over target, increasing fanspeed"); applog(LOG_DEBUG, "Temperature over target, increasing fanspeed");
newpercent = fanpercent + 5; newpercent = fanpercent + 5;
if (newpercent > 85)
newpercent = 85;
} else if (fanpercent && temp < ga->targettemp - opt_hysteresis) { } else if (fanpercent && temp < ga->targettemp - opt_hysteresis) {
if (opt_debug) if (opt_debug)
applog(LOG_DEBUG, "Temperature %d degrees below target, decreasing fanspeed", opt_hysteresis); applog(LOG_DEBUG, "Temperature %d degrees below target, decreasing fanspeed", opt_hysteresis);