From 6e80b63bb897009531c5ecf013f2f87655d72dc4 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Tue, 26 Jun 2012 15:43:03 +1000 Subject: [PATCH] Revert "Increase the getwork delay factored in to determine if work vs share is stale to avoid too tight timing." This reverts commit d8de1bbc5baa416148f50938cfde28a5261cb0e1. Wrong fix. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 8ae21dcf..774c5f68 100644 --- a/cgminer.c +++ b/cgminer.c @@ -2175,7 +2175,7 @@ static bool stale_work(struct work *work, bool share) pool = work->pool; /* Factor in the average getwork delay of this pool, rounding it up to * the nearest second */ - getwork_delay = (pool->cgminer_pool_stats.getwork_wait_rolling + 1) * 5; + getwork_delay = pool->cgminer_pool_stats.getwork_wait_rolling * 5 + 1; if (!share) { work_expiry -= getwork_delay; if (unlikely(work_expiry < 5))