Commit a8ae1a43ead2952fff664d5ca9678bf9da2cd2ba

Con Kolivas 2012-06-24T14:38:31

Rolltime should be used as the cutoff time for primary work as well as the rolled work, if present.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 86ddfb0..1cd9e09 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2167,7 +2167,7 @@ static bool stale_work(struct work *work, bool share)
 
 	if (share)
 		work_expiry = opt_expiry;
-	else if (work->rolls)
+	else if (work->rolltime)
 		work_expiry = work->rolltime;
 	else
 		work_expiry = opt_scantime;