Commit 0a82b255eb58407d8383a60742a4532ad69b5bd8

Con Kolivas 2013-05-26T01:25:43

Inverted logic.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 670dd5b..c4d1fa6 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -619,7 +619,7 @@ static void avalon_update_temps(struct cgpu_info *avalon, struct avalon_info *in
 static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *info,
 				 struct thr_info *thr, char *buf, int *offset)
 {
-	int i, spare = AVALON_READ_SIZE - *offset;
+	int i, spare = *offset - AVALON_READ_SIZE;
 	bool found = false;
 
 	for (i = 0; i <= spare; i++) {