Browse Source

Revert "roundl fix"

This reverts commit 523d177b96a4794286a3f514c75d7761b0b83ba1.
Paul Sheppard 13 years ago
parent
commit
f98970f674
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
cgminer.c

@@ -3581,7 +3581,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 = (unsigned long long) (rolling * 1000000.0 + 0.5);
+	global_hashrate = roundl(rolling) * 1000000;
 
 	timersub(&total_tv_end, &total_tv_start, &total_diff);
 	total_secs = (double)total_diff.tv_sec +