From 523d177b96a4794286a3f514c75d7761b0b83ba1 Mon Sep 17 00:00:00 2001 From: Paul Sheppard Date: Thu, 9 Aug 2012 20:06:46 -0700 Subject: [PATCH] roundl fix --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 55d3943b..b2f11aa3 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3449,7 +3449,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 = roundl(rolling) * 1000000; + global_hashrate = (unsigned long long) (rolling * 1000000.0 + 0.5); timersub(&total_tv_end, &total_tv_start, &total_diff); total_secs = (double)total_diff.tv_sec +