Browse Source

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.
Con Kolivas 14 years ago
parent
commit
639d38fbd4
2 changed files with 1 additions and 6 deletions
  1. 1 5
      main.c
  2. 0 1
      miner.h

+ 1 - 5
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");

+ 0 - 1
miner.h

@@ -345,7 +345,6 @@ struct work {
 	bool		clone;
 	bool		cloned;
 	bool		rolltime;
-	bool		staged;
 };
 
 enum cl_kernel {