From b4d6b11b9a103050be5c17a7d702cfa05a9eb777 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 23 Aug 2011 11:57:08 +1000 Subject: [PATCH] Only display the lagging message if we've requested the work earlier. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index e998c927..a72944d3 100644 --- a/main.c +++ b/main.c @@ -3053,10 +3053,9 @@ retry: applog(LOG_WARNING, "Failed to queue_request in get_work"); goto out; } - requested = false; if (!requests_staged()) { - if (!pool_tset(pool, &pool->lagging)) { + if (requested && !pool_tset(pool, &pool->lagging)) { applog(LOG_WARNING, "Pool %d not providing work fast enough", pool->pool_no); pool->localgen_occasions++; @@ -3069,6 +3068,7 @@ retry: } } + requested = false; gettimeofday(&now, NULL); abstime.tv_sec = now.tv_sec + 60;