From 33e903cb4fea19bbe5c03c8ad04d43d5aab259e2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Mar 2015 17:20:36 +1100 Subject: [PATCH] Logic inversion --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 8dd61b55..95c0b57c 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2711,9 +2711,9 @@ static bool new_enonce1(ckpool_t *ckp, sdata_t *ckp_sdata, sdata_t *sdata, strat * left depending on nonce2 length, we'll always get a changing value * for every next client.*/ ck_wlock(&ckp_sdata->instance_lock); - enonce1 = htole64(ckp_sdata->enonce1_64); + enonce1 = le64toh(ckp_sdata->enonce1_64); enonce1++; - client->enonce1_64 = ckp_sdata->enonce1_64 = le64toh(enonce1); + client->enonce1_64 = ckp_sdata->enonce1_64 = htole64(enonce1); if (proxy) { client->proxy = proxy; proxy->clients++;