From 639d38fbd427f9a87d3aa11ef4dc7b484330be5f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 14 Aug 2011 07:54:45 +1000 Subject: [PATCH] Revert "Make sure to give work items a starting time only once when they're staged." This reverts commit 626ae10d7c90c8a21897343758e5dd0b00016950. Failed to address all work items. --- main.c | 6 +----- miner.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/main.c b/main.c index 6ca1aa92..25883512 100644 --- a/main.c +++ b/main.c @@ -1582,12 +1582,8 @@ static void *stage_thread(void *userdata) } test_work_current(work); - /* Stage date the work only once since it may be rolled - * or cloned and be staged again */ - if (!work->staged) { + if (!work->cloned && !work->clone) gettimeofday(&work->tv_staged, NULL); - work->staged = true; - } if (opt_debug) applog(LOG_DEBUG, "Pushing work to getwork queue"); diff --git a/miner.h b/miner.h index e9b83a6e..de350339 100644 --- a/miner.h +++ b/miner.h @@ -345,7 +345,6 @@ struct work { bool clone; bool cloned; bool rolltime; - bool staged; }; enum cl_kernel {