1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

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

This commit is contained in:
Con Kolivas 2012-06-24 14:38:31 +10:00
parent c20a89d998
commit a8ae1a43ea

View File

@ -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;