From ea90d65d30018bdd1944d84525ba18217d5fe6f5 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 27 Apr 2014 13:05:57 +1000 Subject: [PATCH] Round the optimal value for diff --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index e338a518..dee9dfc0 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "ckpool.h" #include "libckpool.h" @@ -685,7 +686,7 @@ static void add_submit(stratum_instance_t *client, int diff) if (drp > 2.22 && drp < 4.44) return; - optimal = dsps * 3.33; + optimal = round(dsps * 3.33); if (optimal <= 1) { if (client->diff == 1) return;