mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
We should be setting the value of fan_optimal, not its address.
This commit is contained in:
parent
0bde957912
commit
03f4f7e6a6
2
adl.c
2
adl.c
@ -1019,7 +1019,7 @@ static void fan_autotune(int gpu, int temp, int fanpercent, bool __maybe_unused
|
||||
else if (newpercent < iMin)
|
||||
newpercent = iMin;
|
||||
if (newpercent != fanpercent) {
|
||||
fan_optimal = false;
|
||||
*fan_optimal = false;
|
||||
applog(LOG_INFO, "Setting GPU %d fan percentage to %d", gpu, newpercent);
|
||||
set_fanspeed(gpu, newpercent);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user