Commit d3a27d8d5c97ac8d45aa668aa1c50a932a06bf2d

Con Kolivas 2014-03-14T11:38:01

Check the bits of the correct core in cta bit count.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-cointerra.c b/driver-cointerra.c
index 528d791..44a6844 100644
--- a/driver-cointerra.c
+++ b/driver-cointerra.c
@@ -1160,7 +1160,7 @@ static struct api_data *cta_api_stats(struct cgpu_info *cgpu)
 
 			sprintf(asiccore, "Asic%dCore%d", asic, core);
 			__bin2hex(bitmaphex, &info->pipe_bitmap[coreno], 16);
-			for (i = 0; i < 16; i++)
+			for (i = coreno; i < coreno + 16; i++)
 				count += bits_set(info->pipe_bitmap[i]);
 			snprintf(bitmapcount, 40, "%d:%s", count, bitmaphex);
 			root = api_add_string(root, asiccore, bitmapcount, true);