Browse Source

Provide much more smoothing of the short term rates.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
87ac3a006f
  1. 2
      main.c

2
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 */ /* Simulate a rolling average by faking an exponential decay over 5 * log */
static inline void decay_time(double *f, double fadd) 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) static int requests_staged(void)

Loading…
Cancel
Save