From 883b4ea5addc3ea7c4cc898273862f22823c98da Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 28 Apr 2014 23:35:23 +1000 Subject: [PATCH] Clamp share rates more aggressively, biasing towards lower than higher --- src/stratifier.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index ff7ac24b..d3b7eeb4 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -687,8 +687,9 @@ static void add_submit(stratum_instance_t *client, int diff) /* Diff rate product */ drp = dsps / (double)client->diff; - /* Optimal rate product is 3.33, allow some hysteresis */ - if (drp > 2.22 && drp < 4.44) + /* Optimal rate product is 3.33, allow some hysteresis, clamping more + * aggressively high share rates than low. */ + if (drp > 3 && drp < 4) return; optimal = round(dsps * 3.33);