From 00de8225344e89572050dc882e5aeb22945f1f13 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 26 Jun 2011 15:28:33 +1000 Subject: [PATCH] Upper limit should be -hashes. --- cpu-miner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu-miner.c b/cpu-miner.c index f3caf1f2..c9d9acb4 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -996,7 +996,7 @@ static void *gpuminer_thread(void *userdata) timeval_subtract(&diff, &tv_end, &tv_workstart); if (diff.tv_sec > opt_scantime || - work->blk.nonce > MAXTHREADS - hashes_done || + work->blk.nonce > MAXTHREADS - hashes || work_restart[thr_id].restart) need_work = true; }