Browse Source

Attribute split work as local work generation.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
9c12d49684
  1. 2
      main.c

2
main.c

@ -2303,7 +2303,6 @@ static bool divide_work(struct timeval *now, struct work *work, uint32_t hash_di @@ -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 @@ -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;

Loading…
Cancel
Save