1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Damping small changes in hashrate so dramatically has the tendency to always make the hashrate underread so go back to gentle damping instead.

This commit is contained in:
Con Kolivas 2012-03-31 14:39:40 +11:00
parent fb881eac62
commit 0a4a2d9d65

View File

@ -1141,10 +1141,10 @@ void decay_time(double *f, double fadd)
ratio = 1 / ratio;
}
if (ratio > 0.95)
*f = (fadd * 0.05 + *f) / 1.05;
if (ratio > 0.63)
*f = (fadd * 0.58 + *f) / 1.58;
else
*f = (fadd + *f * 0.58) / 1.58; // 0.63
*f = (fadd + *f * 0.58) / 1.58;
}
static int requests_staged(void)