1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Microsecond multiplier error.

This commit is contained in:
ckolivas 2012-06-26 14:05:54 +10:00
parent d8de1bbc5b
commit c7eb9f3761

View File

@ -1363,7 +1363,7 @@ static uint64_t opencl_scanhash(struct thr_info *thr, struct work *work,
suseconds_t gpu_us;
timersub(&gpu->tv_gpuend, &gpu->tv_gpustart, &diff);
gpu_us = diff.tv_sec * 1000 + diff.tv_usec;
gpu_us = diff.tv_sec * 1000000 + diff.tv_usec;
if (likely(gpu_us > 0)) {
gpu->gpu_us_average = (gpu->gpu_us_average + gpu_us * 0.63) / 1.63;