Browse Source

can_roll and should_roll should have no bearing on the cycle period within the miner_thread so remove it.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
83bf9f4334
  1. 4
      cgminer.c

4
cgminer.c

@ -3814,8 +3814,7 @@ void *miner_thread(void *userdata)
struct timeval getwork_start; struct timeval getwork_start;
/* Try to cycle approximately 5 times before each log update */ /* Try to cycle approximately 5 times before each log update */
const unsigned long def_cycle = opt_log_interval / 5 ? : 1; const unsigned long cycle = opt_log_interval / 5 ? : 1;
long cycle;
struct timeval tv_start, tv_end, tv_workstart, tv_lastupdate; struct timeval tv_start, tv_end, tv_workstart, tv_lastupdate;
struct timeval diff, sdiff, wdiff; struct timeval diff, sdiff, wdiff;
uint32_t max_nonce = api->can_limit_work ? api->can_limit_work(mythr) : 0xffffffff; uint32_t max_nonce = api->can_limit_work ? api->can_limit_work(mythr) : 0xffffffff;
@ -3854,7 +3853,6 @@ void *miner_thread(void *userdata)
break; break;
} }
requested = false; requested = false;
cycle = (can_roll(work) && should_roll(work)) ? 1 : def_cycle;
gettimeofday(&tv_workstart, NULL); gettimeofday(&tv_workstart, NULL);
work->blk.nonce = 0; work->blk.nonce = 0;
cgpu->max_hashes = 0; cgpu->max_hashes = 0;

Loading…
Cancel
Save