Browse Source

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

Con Kolivas 13 years ago
parent
commit
a8ae1a43ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
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;