Commit 7388942bbd9471049a86ca3bbd2b92dc408cb512

Kano 2013-01-26T21:57:09

Stratum disconnect shares - count total against stale

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/cgminer.c b/cgminer.c
index c42703f..af1e668 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4601,8 +4601,8 @@ static void clear_stratum_shares(struct pool *pool)
 
 	if (cleared) {
 		applog(LOG_WARNING, "Lost %d shares due to stratum disconnect on pool %d", cleared, pool->pool_no);
-		pool->stale_shares++;
-		total_stale++;
+		pool->stale_shares += cleared;
+		total_stale += cleared;
 	}
 }