Browse Source

roundl fix

nfactor-troky
Paul Sheppard 12 years ago
parent
commit
523d177b96
  1. 2
      cgminer.c

2
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); local_secs = (double)total_diff.tv_sec + ((double)total_diff.tv_usec / 1000000.0);
decay_time(&rolling, local_mhashes_done / local_secs); 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); timersub(&total_tv_end, &total_tv_start, &total_diff);
total_secs = (double)total_diff.tv_sec + total_secs = (double)total_diff.tv_sec +

Loading…
Cancel
Save