Browse Source

Attribute split work as local work generation.

Con Kolivas 14 years ago
parent
commit
9c12d49684
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -2303,7 +2303,6 @@ static bool divide_work(struct timeval *now, struct work *work, uint32_t hash_di
 			if (!can_roll(work))
 				return false;
 			else {
-				local_work++;
 				roll_work(work);
 				return true;
 			}
@@ -2311,6 +2310,7 @@ static bool divide_work(struct timeval *now, struct work *work, uint32_t hash_di
 		/* Okay we can divide it up */
 		work->blk.nonce += hash_inc;
 		work->cloned = true;
+		local_work++;
 		if (opt_debug)
 			applog(LOG_DEBUG, "Successfully divided work");
 		return true;