Rolltime should be used as the cutoff time for primary work as well as the rolled work, if present.
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;