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;