Browse Source

Include pool number in stratum thread name

Luke Dashjr 13 years ago
parent
commit
adf7446338
1 changed files with 3 additions and 1 deletions
  1. 3 1
      miner.c

+ 3 - 1
miner.c

@@ -5995,7 +5995,9 @@ static void *stratum_thread(void *userdata)
 
 	pthread_detach(pthread_self());
 
-	RenameThread("stratum");
+	char threadname[20];
+	snprintf(threadname, 20, "stratum%u", pool->pool_no);
+	RenameThread(threadname);
 
 	srand(time(NULL) + (intptr_t)userdata);