From 87ac3a006ffd15d0eac29e294ab4bad64bfa8557 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 30 Aug 2011 12:40:48 +1000 Subject: [PATCH] Provide much more smoothing of the short term rates. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index efed5b9f..4d01a49b 100644 --- a/main.c +++ b/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)