Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
roundl fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pshep committed Aug 10, 2012
1 parent b6a23d0 commit 523d177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down

0 comments on commit 523d177

Please sign in to comment.