Commit 639d38fbd427f9a87d3aa11ef4dc7b484330be5f

Con Kolivas 2011-08-14T07:54:45

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.

diff --git a/main.c b/main.c
index 6ca1aa9..2588351 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 e9b83a6..de35033 100644
--- a/miner.h
+++ b/miner.h
@@ -345,7 +345,6 @@ struct work {
 	bool		clone;
 	bool		cloned;
 	bool		rolltime;
-	bool		staged;
 };
 
 enum cl_kernel {