|
|
|
@ -696,8 +696,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem)
@@ -696,8 +696,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem)
|
|
|
|
|
klninfo->delay_count++; |
|
|
|
|
klninfo->delay_total += us_diff; |
|
|
|
|
|
|
|
|
|
if (klninfo->nonce_count > 0) { |
|
|
|
|
us_diff = us_tdiff(&(kitem->tv_when), &(klninfo->tv_last_nonce_received)); |
|
|
|
|
if (klninfo->nonce_count == 0) { |
|
|
|
|
if (klninfo->nonce_count == 1) { |
|
|
|
|
klninfo->nonce_min = us_diff; |
|
|
|
|
klninfo->nonce_max = us_diff; |
|
|
|
|
} else { |
|
|
|
@ -706,8 +707,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem)
@@ -706,8 +707,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem)
|
|
|
|
|
if (klninfo->nonce_max < us_diff) |
|
|
|
|
klninfo->nonce_max = us_diff; |
|
|
|
|
} |
|
|
|
|
klninfo->nonce_count++; |
|
|
|
|
klninfo->nonce_total += us_diff; |
|
|
|
|
} |
|
|
|
|
klninfo->nonce_count++; |
|
|
|
|
|
|
|
|
|
memcpy(&(klninfo->tv_last_nonce_received), &(kitem->tv_when), |
|
|
|
|
sizeof(klninfo->tv_last_nonce_received)); |
|
|
|
|