Browse Source

Clamp share rates more aggressively, biasing towards lower than higher

master
Con Kolivas 11 years ago
parent
commit
883b4ea5ad
  1. 5
      src/stratifier.c

5
src/stratifier.c

@ -687,8 +687,9 @@ static void add_submit(stratum_instance_t *client, int diff)
/* Diff rate product */ /* Diff rate product */
drp = dsps / (double)client->diff; drp = dsps / (double)client->diff;
/* Optimal rate product is 3.33, allow some hysteresis */ /* Optimal rate product is 3.33, allow some hysteresis, clamping more
if (drp > 2.22 && drp < 4.44) * aggressively high share rates than low. */
if (drp > 3 && drp < 4)
return; return;
optimal = round(dsps * 3.33); optimal = round(dsps * 3.33);

Loading…
Cancel
Save