Browse Source

gpu->hit should be reset on new work as well.

nfactor-troky
ckolivas 12 years ago
parent
commit
f63aeab1fe
  1. 2
      driver-opencl.c

2
driver-opencl.c

@ -1536,7 +1536,7 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work, @@ -1536,7 +1536,7 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
gettimeofday(&gpu->tv_gpumid, NULL);
if (gpu->new_work) {
gpu->new_work = false;
gpu->intervals = 0;
gpu->intervals = gpu->hit = 0;
}
if (!gpu->intervals) {
gpu->tv_gpustart.tv_sec = gpu->tv_gpumid.tv_sec;

Loading…
Cancel
Save