Commit 88ff55e70e8c15aeedf4ccfc359b175a01c8f8fe

Con Kolivas 2012-03-29T21:02:42

Use a time constant 0.63 for when large changes in hashrate are detected to damp change in case the large change is an aliasing artefact instead of a real change.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index d4a09fe..f8e6095 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -1143,7 +1143,7 @@ void decay_time(double *f, double fadd)
 	if (ratio > 0.95)
 		*f = (fadd * 0.05 + *f) / 1.05;
 	else
-		*f = (fadd + *f * 0.05) / 1.05;
+		*f = (fadd + *f * 0.58) / 1.58; // 0.63
 }
 
 static int requests_staged(void)