mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Only throttle avalon clockspeed in avalon_auto in non optimal temperature settings if the fanspeed has reached maximum.
This commit is contained in:
parent
3ef0db5658
commit
18422fbf7d
@ -909,9 +909,12 @@ static void *avalon_send_tasks(void *userdata)
|
|||||||
if (opt_avalon_auto && info->auto_queued >= AVALON_AUTO_CYCLE) {
|
if (opt_avalon_auto && info->auto_queued >= AVALON_AUTO_CYCLE) {
|
||||||
mutex_lock(&info->lock);
|
mutex_lock(&info->lock);
|
||||||
if (!info->optimal) {
|
if (!info->optimal) {
|
||||||
applog(LOG_WARNING, "AVA%i: Above optimal temperature, throttling",
|
if (info->fan_pwm >= opt_avalon_fan_max) {
|
||||||
avalon->device_id);
|
applog(LOG_WARNING,
|
||||||
avalon_dec_freq(info);
|
"AVA%i: Above optimal temperature, throttling",
|
||||||
|
avalon->device_id);
|
||||||
|
avalon_dec_freq(info);
|
||||||
|
}
|
||||||
} else if (info->auto_nonces >= (AVALON_AUTO_CYCLE * 19 / 20) &&
|
} else if (info->auto_nonces >= (AVALON_AUTO_CYCLE * 19 / 20) &&
|
||||||
info->auto_nonces <= (AVALON_AUTO_CYCLE * 21 / 20)) {
|
info->auto_nonces <= (AVALON_AUTO_CYCLE * 21 / 20)) {
|
||||||
int total = info->auto_nonces + info->auto_hw;
|
int total = info->auto_nonces + info->auto_hw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user