Commit 9c12d496845cd14c42d464be1163bb393931c9dd

Con Kolivas 2011-07-27T16:29:37

Attribute split work as local work generation.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/main.c b/main.c
index 5f00b47..139ce46 100644
--- a/main.c
+++ b/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;