From f98970f67404589f092c4268eac719693e601547 Mon Sep 17 00:00:00 2001 From: Paul Sheppard Date: Thu, 9 Aug 2012 23:41:53 -0700 Subject: [PATCH] Revert "roundl fix" This reverts commit 523d177b96a4794286a3f514c75d7761b0b83ba1. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 2d44bac0..a662c1f0 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3581,7 +3581,7 @@ static void hashmeter(int thr_id, struct timeval *diff, local_secs = (double)total_diff.tv_sec + ((double)total_diff.tv_usec / 1000000.0); decay_time(&rolling, local_mhashes_done / local_secs); - global_hashrate = (unsigned long long) (rolling * 1000000.0 + 0.5); + global_hashrate = roundl(rolling) * 1000000; timersub(&total_tv_end, &total_tv_start, &total_diff); total_secs = (double)total_diff.tv_sec +