Commit 09104ce3e822452bc3587739763290a44d1c3519

Con Kolivas 2011-07-02T00:13:13

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cpu-miner.c b/cpu-miner.c
index 35d535b..5f9c4cf 100644
--- a/cpu-miner.c
+++ b/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;