mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-27 15:04:17 +00:00
Use a more conservative upper limit of 1% for hardware errors with avalon auto frequency.
This commit is contained in:
parent
f142a4de23
commit
d7c99cd116
@ -889,10 +889,10 @@ static void *avalon_send_tasks(void *userdata)
|
|||||||
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;
|
||||||
|
|
||||||
/* Try to keep hw errors ~1-1.5% */
|
/* Try to keep hw errors ~1% */
|
||||||
if (info->auto_hw * 100 < total)
|
if (info->auto_hw * 200 < total)
|
||||||
avalon_inc_freq(info);
|
avalon_inc_freq(info);
|
||||||
else if (info->auto_hw * 66 > total)
|
else if (info->auto_hw * 100 > total)
|
||||||
avalon_dec_freq(info);
|
avalon_dec_freq(info);
|
||||||
}
|
}
|
||||||
avalon_reset_auto(info);
|
avalon_reset_auto(info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user