Browse Source

Add API output displaying USB cancellations.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
e40b1c176d
  1. 1
      api.c

1
api.c

@ -3149,6 +3149,7 @@ static int itemstats(struct io_data *io_data, int i, char *id, struct cgminer_st
} }
root = api_add_string(root, "USB tmo", details, true); root = api_add_string(root, "USB tmo", details, true);
root = api_add_int(root, "USB cancellations", &cgpu->usb_cancels, false);
root = api_add_int(root, "USB bulk reads", &cgpu->usb_bulk_reads, false); root = api_add_int(root, "USB bulk reads", &cgpu->usb_bulk_reads, false);
val = cgpu->usb_rlock_total_wait / (cgpu->usb_bulk_reads ? : 1); val = cgpu->usb_rlock_total_wait / (cgpu->usb_bulk_reads ? : 1);
root = api_add_int(root, "USB avg rlock ms wait", &val, true); root = api_add_int(root, "USB avg rlock ms wait", &val, true);

Loading…
Cancel
Save