Browse Source

Order next_proc linked list in processor id order

Luke Dashjr 13 years ago
parent
commit
4df2b0ee95
1 changed files with 2 additions and 1 deletions
  1. 2 1
      miner.c

+ 2 - 1
miner.c

@@ -7693,8 +7693,9 @@ bool add_cgpu(struct cgpu_info*cgpu)
 			slave->threads = tpp;
 			devices[total_devices++] = slave;
 			*nlp_p = slave;
-			nlp_p = &cgpu->next_proc;
+			nlp_p = &slave->next_proc;
 		}
+		*nlp_p = NULL;
 		cgpu->proc_id = 0;
 		cgpu->threads -= (tpp * (lpcount - 1));
 	}