1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-13 06:01:03 +00:00

Use lround instead of llround, since it has better compatibility with older MingW and Cygwin versions

This commit is contained in:
Luke Dashjr 2013-11-24 02:52:08 +00:00 committed by Noel Maersk
parent 7aeae40af2
commit 3faf4dd4a6

View File

@ -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 +