Reduce progress callback interval to every 10 rounds
This commit is contained in:
BIN
event_miner
BIN
event_miner
Binary file not shown.
@@ -378,8 +378,8 @@ static void* miner_thread(void* arg) {
|
|||||||
break; // Exit after reporting solution
|
break; // Exit after reporting solution
|
||||||
}
|
}
|
||||||
|
|
||||||
// Progress reporting every 9999 attempts
|
// Progress reporting every 10 attempts
|
||||||
if (ctx->progress_callback && attempts % 9999 == 0) {
|
if (ctx->progress_callback && attempts % 10 == 0) {
|
||||||
ctx->progress_callback(ctx->thread_id, attempts, ctx->user_data);
|
ctx->progress_callback(ctx->thread_id, attempts, ctx->user_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user