Browse Source

Flag the work back to just thread 0 used by all the threads to avoid lots of queued older work for each thread.

Con Kolivas 14 years ago
parent
commit
09104ce3e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cpu-miner.c

+ 1 - 1
cpu-miner.c

@@ -691,7 +691,7 @@ static void hashmeter(int thr_id, struct timeval *diff,
 
 static bool get_work(struct work *work)
 {
-	struct thr_info *thr = &thr_info[work->thr_id];
+	struct thr_info *thr = &thr_info[0];
 	struct work *work_heap;
 	struct workio_cmd *wc;
 	bool ret = false;