Browse Source

Inverted logic.

Con Kolivas 12 years ago
parent
commit
0a82b255eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-avalon.c

+ 1 - 1
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++) {