1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 11:34:16 +00:00

Allow LP to reset block detect and block detect lp flags to know who really came first.

This commit is contained in:
Con Kolivas 2011-08-24 23:14:52 +10:00
parent 48f07d9219
commit b643b56a95

7
main.c
View File

@ -2073,8 +2073,6 @@ static void restart_threads(void)
{
int i, stale;
block_changed = BLOCK_NONE;
/* Discard staged work that is now stale */
stale = discard_stale();
@ -4115,11 +4113,6 @@ static void *watchdog_thread(void *userdata)
mutex_unlock(&curses_lock);
}
if (unlikely(work_restart[watchdog_thr_id].restart)) {
restart_threads();
work_restart[watchdog_thr_id].restart = 0;
}
gettimeofday(&now, NULL);
for (i = 0; i < total_pools; i++) {