From 563cad189e8e75d847cb1d7d863ceb667d03403a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 23 Oct 2013 09:13:50 +1100 Subject: [PATCH] Fix lldiv error in windows cgminer_t calculation. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 36bced24..5b907505 100644 --- a/util.c +++ b/util.c @@ -982,7 +982,7 @@ void cgtimer_time(cgtimer_t *ts_start) decius_time(&lidiv); ts_start->tv_sec = lidiv.quot; - ts_start->tv_nsec = lidiv.quot * 100; + ts_start->tv_nsec = lidiv.rem * 100; } #else /* WIN32 */ void cgtime(struct timeval *tv)