Browse Source

Icarus driver elaspsed timeout shouldn't be just USB I/O

nfactor-troky
Kano 12 years ago
parent
commit
65e21f18cb
  1. 2
      driver-icarus.c

2
driver-icarus.c

@ -445,7 +445,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct @@ -445,7 +445,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct
if (amt >= read_amount)
return ICA_NONCE_OK;
rc += SECTOMS(tdiff(&read_finish, &read_start));
rc = SECTOMS(tdiff(&read_finish, tv_start));
if (rc >= read_time) {
if (amt > 0)
applog(LOG_DEBUG, "Icarus Read: Timeout reading for %d ms", rc);

Loading…
Cancel
Save