Browse Source

Attribute split work as local work generation.

nfactor-troky
Con Kolivas 14 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
if (!can_roll(work)) if (!can_roll(work))
return false; return false;
else { else {
local_work++;
roll_work(work); roll_work(work);
return true; 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 */ /* Okay we can divide it up */
work->blk.nonce += hash_inc; work->blk.nonce += hash_inc;
work->cloned = true; work->cloned = true;
local_work++;
if (opt_debug) if (opt_debug)
applog(LOG_DEBUG, "Successfully divided work"); applog(LOG_DEBUG, "Successfully divided work");
return true; return true;

Loading…
Cancel
Save