Commit ffb8a29abf5b403dca7fa67cf1a6d1443982da9c

Con Kolivas 2012-11-05T23:25:36

Count lost shares with stratum as submit stale lost.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/cgminer.c b/cgminer.c
index 9139412..1d5691c 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4320,8 +4320,11 @@ static void clear_stratum_shares(struct pool *pool)
 	}
 	mutex_unlock(&sshare_lock);
 
-	if (cleared)
+	if (cleared) {
 		applog(LOG_WARNING, "Lost %d shares due to stratum disconnect on pool %d", cleared, pool->pool_no);
+		pool->stale_shares++;
+		total_stale++;
+	}
 }
 
 /* One stratum thread per pool that has stratum waits on the socket checking