From 5fd152c370a41449cfc0843dfec0cf92a0ce5ca8 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 7 Oct 2014 15:05:06 +1100 Subject: [PATCH] Reverse logic --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index bd82490e..a758e2c9 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2732,7 +2732,7 @@ static void sauth_process(ckpool_t *ckp, json_params_t *jp) /* Update the client now if they have set a valid mindiff different * from the startdiff */ mindiff = MAX(ckp->mindiff, client->suggest_diff); - mindiff = MIN(ckp->startdiff, mindiff); + mindiff = MAX(ckp->startdiff, mindiff); if (mindiff != client->diff) { client->diff = mindiff; stratum_send_diff(client);