Browse Source

Use timeval_to_spec helper in avalon driver.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
53beae814d
  1. 3
      driver-avalon.c

3
driver-avalon.c

@ -1304,8 +1304,7 @@ static int64_t avalon_scanhash(struct thr_info *thr)
tdiff.tv_usec = us_timeout - (tdiff.tv_sec * 1000000); tdiff.tv_usec = us_timeout - (tdiff.tv_sec * 1000000);
cgtime(&now); cgtime(&now);
timeradd(&now, &tdiff, &then); timeradd(&now, &tdiff, &then);
abstime.tv_sec = then.tv_sec; timeval_to_spec(&abstime, &then);
abstime.tv_nsec = then.tv_usec * 1000;
/* Wait until avalon_send_tasks signals us that it has completed /* Wait until avalon_send_tasks signals us that it has completed
* sending its work or a full nonce range timeout has occurred */ * sending its work or a full nonce range timeout has occurred */

Loading…
Cancel
Save