From 0ee5a5572eeb185c3f46e9d87057820b6668f22e Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 23 Jun 2015 12:21:49 +0200 Subject: [PATCH] Minor miner fix. --- libethash-cl/ethash_cl_miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libethash-cl/ethash_cl_miner.cpp b/libethash-cl/ethash_cl_miner.cpp index fbb74f5b2..fb5f201b6 100644 --- a/libethash-cl/ethash_cl_miner.cpp +++ b/libethash-cl/ethash_cl_miner.cpp @@ -467,7 +467,7 @@ void ethash_cl_miner::search(uint8_t const* header, uint64_t target, search_hook unsigned ms = t.elapsed() * 1000; if (ms > _msPerBatch * 1.1) m_batchSize = max(128, m_batchSize * 9 / 10); - else if (ms > _msPerBatch * 0.9) + else if (ms < _msPerBatch * 0.9) m_batchSize = m_batchSize * 10 / 9; pending.push({ start_nonce, buf });