Commit 1ed86decf3ce34e59117b9cbdb210f101a2b4c16

Con Kolivas 2013-03-18T14:36:10

If the hashmeter is less than the log interval and being updated by the watchdog, don't update the hashrate.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/cgminer.c b/cgminer.c
index f706f7a..a8e0116 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4689,7 +4689,10 @@ static void hashmeter(int thr_id, struct timeval *diff,
 	/* Only update the total every second */
 	if (!total_diff.tv_sec)
 		goto out_unlock;
-	if (total_diff.tv_sec >= opt_log_interval)
+	if (total_diff.tv_sec < opt_log_interval) {
+		if (thr_id < 0)
+			goto out_unlock;
+	} else
 		showlog = true;
 	gettimeofday(&total_tv_end, NULL);