mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 22:02:09 +00:00
Use a time constant 0.63 for when large changes in hashrate are detected to damp change in case the large change is an aliasing artefact instead of a real change.
This commit is contained in:
parent
a1879c8057
commit
88ff55e70e
@ -1143,7 +1143,7 @@ void decay_time(double *f, double fadd)
|
|||||||
if (ratio > 0.95)
|
if (ratio > 0.95)
|
||||||
*f = (fadd * 0.05 + *f) / 1.05;
|
*f = (fadd * 0.05 + *f) / 1.05;
|
||||||
else
|
else
|
||||||
*f = (fadd + *f * 0.05) / 1.05;
|
*f = (fadd + *f * 0.58) / 1.58; // 0.63
|
||||||
}
|
}
|
||||||
|
|
||||||
static int requests_staged(void)
|
static int requests_staged(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user