1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-08-31 16:21:49 +00:00

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

This commit is contained in:
ckolivas 2012-08-22 10:33:40 +10:00
parent edd9b81622
commit f63aeab1fe

View File

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