mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
klondike - correct/reverse min/max stats
This commit is contained in:
parent
da7223f1b4
commit
16bd0a0d9c
@ -688,9 +688,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem)
|
|||||||
klninfo->delay_min = us_diff;
|
klninfo->delay_min = us_diff;
|
||||||
klninfo->delay_max = us_diff;
|
klninfo->delay_max = us_diff;
|
||||||
} else {
|
} else {
|
||||||
if (klninfo->delay_min < us_diff)
|
if (klninfo->delay_min > us_diff)
|
||||||
klninfo->delay_min = us_diff;
|
klninfo->delay_min = us_diff;
|
||||||
if (klninfo->delay_max > us_diff)
|
if (klninfo->delay_max < us_diff)
|
||||||
klninfo->delay_max = us_diff;
|
klninfo->delay_max = us_diff;
|
||||||
}
|
}
|
||||||
klninfo->delay_count++;
|
klninfo->delay_count++;
|
||||||
@ -701,9 +701,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem)
|
|||||||
klninfo->nonce_min = us_diff;
|
klninfo->nonce_min = us_diff;
|
||||||
klninfo->nonce_max = us_diff;
|
klninfo->nonce_max = us_diff;
|
||||||
} else {
|
} else {
|
||||||
if (klninfo->nonce_min < us_diff)
|
if (klninfo->nonce_min > us_diff)
|
||||||
klninfo->nonce_min = us_diff;
|
klninfo->nonce_min = us_diff;
|
||||||
if (klninfo->nonce_max > us_diff)
|
if (klninfo->nonce_max < us_diff)
|
||||||
klninfo->nonce_max = us_diff;
|
klninfo->nonce_max = us_diff;
|
||||||
}
|
}
|
||||||
klninfo->nonce_count++;
|
klninfo->nonce_count++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user