Commit e0c4d35b28833547a2551348949230162d1d08b8

Con Kolivas 2013-06-18T20:59:45

Multiplier fail for microseconds vs milliseconds when updating hashmeter in hash_queued_work.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 66fd38c..4f3a2f7 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6078,7 +6078,7 @@ void hash_queued_work(struct thr_info *mythr)
 		cgtime(&tv_end);
 		timersub(&tv_end, &tv_start, &diff);
 		/* Update the hashmeter at most 5 times per second */
-		if (diff.tv_sec > 0 || diff.tv_usec > 200) {
+		if (diff.tv_sec > 0 || diff.tv_usec > 200000) {
 			hashmeter(thr_id, &diff, hashes_done);
 			hashes_done = 0;
 			copy_time(&tv_start, &tv_end);