From 3faf4dd4a6d0a202303abaa3e95a92deee49bb3d Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 24 Nov 2013 02:52:08 +0000 Subject: [PATCH] Use lround instead of llround, since it has better compatibility with older MingW and Cygwin versions --- sgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgminer.c b/sgminer.c index 834e5e89..ffe4d5c0 100644 --- a/sgminer.c +++ b/sgminer.c @@ -4876,7 +4876,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(&total_rolling, local_mhashes_done / local_secs, local_secs); - global_hashrate = llround(total_rolling) * 1000000; + global_hashrate = ((unsigned long long)lround(total_rolling)) * 1000000; timersub(&total_tv_end, &total_tv_start, &total_diff); total_secs = (double)total_diff.tv_sec +