1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Provide much more smoothing of the short term rates.

This commit is contained in:
Con Kolivas 2011-08-30 12:40:48 +10:00
parent d1a8614e5f
commit 87ac3a006f

2
main.c
View File

@ -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)