mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Set the avalon idle frequency to lowest if avalon auto is enabled and we have an overheat condition.
This commit is contained in:
parent
ce214e1270
commit
36b556aa66
@ -922,10 +922,14 @@ static void *avalon_send_tasks(void *userdata)
|
||||
avalon_create_task(&at, avalon->works[i]);
|
||||
info->auto_queued++;
|
||||
} else {
|
||||
int idle_freq = info->frequency;
|
||||
|
||||
idled++;
|
||||
if (unlikely(info->overheat && opt_avalon_auto))
|
||||
idle_freq = AVALON_MIN_FREQUENCY;
|
||||
avalon_init_task(&at, 0, 0, info->fan_pwm,
|
||||
info->timeout, info->asic_count,
|
||||
info->miner_count, 1, 1, info->frequency);
|
||||
info->miner_count, 1, 1, idle_freq);
|
||||
/* Reset the auto_queued count if we end up
|
||||
* idling any miners. */
|
||||
avalon_reset_auto(info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user