From 16bd0a0d9ceb3474d378da2110cb46df60d9225d Mon Sep 17 00:00:00 2001 From: Kano Date: Sat, 12 Oct 2013 11:45:43 +1100 Subject: [PATCH] klondike - correct/reverse min/max stats --- driver-klondike.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver-klondike.c b/driver-klondike.c index f9549a3c..69834657 100644 --- a/driver-klondike.c +++ b/driver-klondike.c @@ -688,9 +688,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem) klninfo->delay_min = us_diff; klninfo->delay_max = us_diff; } else { - if (klninfo->delay_min < us_diff) + if (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_count++; @@ -701,9 +701,9 @@ static void klondike_check_nonce(struct cgpu_info *klncgpu, KLIST *kitem) klninfo->nonce_min = us_diff; klninfo->nonce_max = us_diff; } else { - if (klninfo->nonce_min < us_diff) + if (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_count++;