Commit 0a4a2d9d65596e8ceec918acc2732cc7b399c34d

Con Kolivas 2012-03-31T14:39:40

Damping small changes in hashrate so dramatically has the tendency to always make the hashrate underread so go back to gentle damping instead.

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