mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
Provide much more smoothing of the short term rates.
This commit is contained in:
parent
d1a8614e5f
commit
87ac3a006f
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 */
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user