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

roundl fix

This commit is contained in:
Paul Sheppard 2012-08-09 20:06:46 -07:00
parent b6a23d0027
commit 523d177b96

View File

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