Browse Source

Provide much more smoothing of the short term rates.

Con Kolivas 14 years ago
parent
commit
87ac3a006f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -1358,7 +1358,7 @@ static inline int dev_from_id(int thr_id)
 /* Simulate a rolling average by faking an exponential decay over 5 * log */
 static inline void decay_time(double *f, double fadd)
 {
-	*f = (fadd + *f * 0.9) / 1.9;
+	*f = (fadd * .37 + *f) / 1.37;
 }
 
 static int requests_staged(void)