From 53beae814daf76698cc75e4e2f199174409a8baa Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 18 Aug 2013 00:21:01 +1000 Subject: [PATCH] Use timeval_to_spec helper in avalon driver. --- driver-avalon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/driver-avalon.c b/driver-avalon.c index 36d4fc77..8fca3502 100644 --- a/driver-avalon.c +++ b/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); cgtime(&now); timeradd(&now, &tdiff, &then); - abstime.tv_sec = then.tv_sec; - abstime.tv_nsec = then.tv_usec * 1000; + timeval_to_spec(&abstime, &then); /* Wait until avalon_send_tasks signals us that it has completed * sending its work or a full nonce range timeout has occurred */