Skip to content

Commit

Permalink
NFC: Correct an assertion condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanOberhumer committed Aug 29, 2018
1 parent 4562aff commit c82521b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libapicore/ApiServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ Json::Value ApiConnection::getMinerStatHR()
runtime << toString(runningTime.count());
poolAddresses << m_farm.get_pool_addresses();

assert(p.minersHashes.size() == p.minerMonitors.size());
assert(p.minersHashes.size() == p.minerMonitors.size() || p.minerMonitors.size() == 0);
assert(p.minersHashes.size() == p.miningIsPaused.size());

for (unsigned gpuIndex = 0; gpuIndex < p.minersHashes.size(); gpuIndex++)
Expand Down

0 comments on commit c82521b

Please sign in to comment.