From 6f8ac8aa975f16237d9b868ecdea4d2ed8d88b1f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 21 Feb 2016 11:09:26 +1100 Subject: [PATCH] Allow mindiff to be set to zero to reset to defaults with ckdb commands --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 4a63b713..fe8dcf99 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5775,7 +5775,7 @@ static void set_worker_mindiff(ckpool_t *ckp, const char *workername, int mindif /* Then find the matching worker user */ worker = get_worker(sdata, user, workername); - if (mindiff < 1) { + if (mindiff < 0) { LOGINFO("Worker %s requested invalid diff %d", worker->workername, mindiff); return; }