Commit 369a45431d8d918005f668ca6a885383716f051a

Kano 2013-07-20T16:04:04

api correct timeout stat display

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/api.c b/api.c
index b67cff4..5d24771 100644
--- a/api.c
+++ b/api.c
@@ -3048,8 +3048,8 @@ static int itemstats(struct io_data *io_data, int i, char *id, struct cgminer_st
 		root = api_add_string(root, "USB Delay", details, true);
 
 		if (cgpu->usbinfo.usb_tmo[0].count == 0 &&
-			cgpu->usbinfo.usb_tmo[0].count == 0 &&
-			cgpu->usbinfo.usb_tmo[0].count == 0) {
+			cgpu->usbinfo.usb_tmo[1].count == 0 &&
+			cgpu->usbinfo.usb_tmo[2].count == 0) {
 				snprintf(details, sizeof(details),
 					 "%"PRIu64" 0", cgpu->usbinfo.tmo_count);
 		} else {