1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

api correct timeout stat display

This commit is contained in:
Kano 2013-07-20 16:04:04 +10:00
parent 759ce6e7d2
commit 369a45431d

4
api.c
View File

@ -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); root = api_add_string(root, "USB Delay", details, true);
if (cgpu->usbinfo.usb_tmo[0].count == 0 && if (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[0].count == 0) { cgpu->usbinfo.usb_tmo[2].count == 0) {
snprintf(details, sizeof(details), snprintf(details, sizeof(details),
"%"PRIu64" 0", cgpu->usbinfo.tmo_count); "%"PRIu64" 0", cgpu->usbinfo.tmo_count);
} else { } else {