Commit d93e5f710d69b44e2d23931ffc363c22dd362545

Con Kolivas 2012-06-25T00:23:58

Count longpoll's contribution to the queue.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/cgminer.c b/cgminer.c
index 56aaeed..e54916f 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4137,8 +4137,10 @@ static void convert_to_work(json_t *val, int rolltime, struct pool *pool)
 
 	if (unlikely(!stage_work(work)))
 		free_work(work);
-	else
+	else {
+		inc_queued();
 		applog(LOG_DEBUG, "Converted longpoll data to work");
+	}
 }
 
 /* If we want longpoll, enable it for the chosen default pool, or, if