Commit 9645c1a107bf8bb29e7c9834dc140ad4d04683f8

Con Kolivas 2013-10-20T15:19:35

Add asic and core counts to hashfast api data.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-hashfast.c b/driver-hashfast.c
index adf081a..e7c0eb1 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -754,6 +754,9 @@ static struct api_data *hfa_api_stats(struct cgpu_info *cgpu)
 	char buf[64];
 	int varint;
 
+	root = api_add_int(root, "asic count", &info->asic_count, false);
+	root = api_add_int(root, "core count", &info->core_count, false);
+
 	db = &info->usb_init_base;
 	sprintf(buf, "%d.%d", (db->firmware_rev >> 8) & 0xff, db->firmware_rev & 0xff);
 	root = api_add_string(root, "firmware rev", buf, true);