Commit d08bdfd69f41b623554f30b2946f30cc6d16f7fa

Con Kolivas 2013-05-02T17:03:31

Add extra matching work count data in API for Avalon with 4 modules.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/driver-avalon.c b/driver-avalon.c
index caca228..51c5e8f 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -1017,6 +1017,16 @@ static struct api_data *avalon_api_stats(struct cgpu_info *cgpu)
 	root = api_add_int(root, "matching_work_count22", &(info->matching_work[21]), false);
 	root = api_add_int(root, "matching_work_count23", &(info->matching_work[22]), false);
 	root = api_add_int(root, "matching_work_count24", &(info->matching_work[23]), false);
+	if (info->miner_count > 24) {
+		root = api_add_int(root, "matching_work_count25", &(info->matching_work[24]), false);
+		root = api_add_int(root, "matching_work_count26", &(info->matching_work[25]), false);
+		root = api_add_int(root, "matching_work_count27", &(info->matching_work[26]), false);
+		root = api_add_int(root, "matching_work_count28", &(info->matching_work[27]), false);
+		root = api_add_int(root, "matching_work_count29", &(info->matching_work[28]), false);
+		root = api_add_int(root, "matching_work_count30", &(info->matching_work[29]), false);
+		root = api_add_int(root, "matching_work_count31", &(info->matching_work[30]), false);
+		root = api_add_int(root, "matching_work_count32", &(info->matching_work[31]), false);
+	}
 
 	return root;
 }