Commit 687c17056ed0efe28a425cc64961e55270cfb66a

Con Kolivas 2014-02-24T10:33:53

Add op name to hfa API stats output if it exists.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index d058319..c827715 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1590,6 +1590,8 @@ static struct api_data *hfa_api_stats(struct cgpu_info *cgpu)
 	varint = db->sequence_modulus;
 	root = api_add_int(root, "sequence modulus", &varint, true);
 	root = api_add_int(root, "fan percent", &info->fanspeed, false);
+	if (info->op_name[0] != '\0')
+		root = api_add_string(root, "op name", info->op_name, false);
 
 	s1 = &info->stats1;
 	root = api_add_uint64(root, "rx preambles", &s1->usb_rx_preambles, false);