mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Use a half nonce range before cycling through avalon's scanwork to ensure it gets a chance to fill work if time is tight for the write thread to signal a wakeup.
This commit is contained in:
parent
98862b4f46
commit
7e6cbf080e
@ -1046,8 +1046,8 @@ static int64_t avalon_scanhash(struct thr_info *thr)
|
|||||||
int64_t hash_count, us_timeout;
|
int64_t hash_count, us_timeout;
|
||||||
struct timespec abstime;
|
struct timespec abstime;
|
||||||
|
|
||||||
/* Full nonce range */
|
/* Half nonce range */
|
||||||
us_timeout = 0x100000000ll / info->asic_count / info->frequency;
|
us_timeout = 0x80000000ll / info->asic_count / info->frequency;
|
||||||
tdiff.tv_sec = us_timeout / 1000000;
|
tdiff.tv_sec = us_timeout / 1000000;
|
||||||
tdiff.tv_usec = us_timeout - (tdiff.tv_sec * 1000000);
|
tdiff.tv_usec = us_timeout - (tdiff.tv_sec * 1000000);
|
||||||
cgtime(&now);
|
cgtime(&now);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user