Commit 4076e6b36e90fbcea758b1fa22f2c79cae3e90d2

Con Kolivas 2013-05-26T08:57:02

Make sure we're not adjusting temps on every successful work retrieval on avalon.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 3c98d12..eb8e9ca 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -645,7 +645,7 @@ static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *i
 			found = true;
 
 			mutex_lock(&info->lock);
-			if (!avalon->results++ % info->miner_count) {
+			if (!(++avalon->results % info->miner_count)) {
 				gettemp = true;
 				avalon->results = 0;
 			}