Commit 68d5403046b3ca13b0ae67fa17bdd5d034ca581a

Con Kolivas 2013-11-16T11:29:18

Add bxf data to api output.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-bitfury.c b/driver-bitfury.c
index 7308faf..e432cb3 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -782,7 +782,12 @@ static struct api_data *bxf_api_stats(struct bitfury_info *info)
 {
 	struct api_data *root = NULL;
 	double nonce_rate;
+	char buf[32];
 
+	sprintf(buf, "%d.%d", info->ver_major, info->ver_minor);
+	root = api_add_string(root, "Version", buf, true);
+	root = api_add_int(root, "Revision", &info->hw_rev,  false);
+	root = api_add_int(root, "Chips", &info->chips, false);
 	nonce_rate = (double)info->total_nonces / (double)info->cycles;
 	root = api_add_double(root, "NonceRate", &nonce_rate, true);
 	root = api_add_int(root, "NoMatchingWork", &info->no_matching_work, false);