From 06a29983f5163200dbca7d847b3dfabb8d61b743 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 1 Mar 2016 09:03:35 +1100 Subject: [PATCH] Reset worker mindiff to startdiff when it is set to zero --- src/stratifier.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index 3ad4914a..66bc831f 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5765,6 +5765,8 @@ static void set_worker_mindiff(ckpool_t *ckp, const char *workername, int mindif LOGINFO("Worker %s requested invalid diff %d", worker->workername, mindiff); return; } + if (!mindiff) + mindiff = ckp->startdiff; if (mindiff < ckp->mindiff) mindiff = ckp->mindiff; if (mindiff == worker->mindiff)