Commit 16bd0a0d9ceb3474d378da2110cb46df60d9225d

Kano 2013-10-12T11:45:43

klondike - correct/reverse min/max stats

diff --git a/driver-klondike.c b/driver-klondike.c
index f9549a3..6983465 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++;