From bca9814d419c154dba07703556fba285cff14189 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 22 Feb 2012 11:50:35 +1100 Subject: [PATCH] Reset times after all mining threads are started to make estimating hashrates easier at startup. --- cgminer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgminer.c b/cgminer.c index 58c5157e..6f55ba75 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4562,6 +4562,9 @@ int main (int argc, char *argv[]) algo_names[opt_algo]); #endif + gettimeofday(&total_tv_start, NULL); + gettimeofday(&total_tv_end, NULL); + watchpool_thr_id = mining_threads + 3; thr = &thr_info[watchpool_thr_id]; /* start watchpool thread */