Commit 77b7ed4b9ea50927e4a900d442b9fc94f929abd1

Con Kolivas 2012-07-16T20:25:16

Debug output per thread hashrate is out by a factor of 1000.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/cgminer.c b/cgminer.c
index 990a397..52e92f5 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3423,8 +3423,8 @@ static void hashmeter(int thr_id, struct timeval *diff,
 		double thread_rolling = 0.0;
 		int i;
 
-		applog(LOG_DEBUG, "[thread %d: %llu hashes, %.0f khash/sec]",
-			thr_id, hashes_done, hashes_done / secs);
+		applog(LOG_DEBUG, "[thread %d: %llu hashes, %.1f khash/sec]",
+			thr_id, hashes_done, hashes_done / 1000 / secs);
 
 		/* Rolling average for each thread and each device */
 		decay_time(&thr->rolling, local_mhashes / secs);