1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 23:14:21 +00:00

Use slightly more damping on the decay time function in the never-ending quest to smooth off the hashmeter.

This commit is contained in:
ckolivas 2012-03-29 09:35:48 +11:00
parent 2f71520368
commit 35de9d1e07

View File

@ -1141,9 +1141,9 @@ void decay_time(double *f, double fadd)
}
if (ratio > 0.95)
*f = (fadd * 0.1 + *f) / 1.1;
*f = (fadd * 0.05 + *f) / 1.05;
else
*f = (fadd + *f * 0.1) / 1.1;
*f = (fadd + *f * 0.05) / 1.05;
}
static int requests_staged(void)