Fix bug: wrong parenthesis position in the condition

pull/43/head
Tatsuhiro Tsujikawa 2013-01-24 00:04:58 +09:00
parent 3b7566faf1
commit 32a3c441af
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ bool DHTGetPeersCommand::execute()
lastGetPeerTime_ = global::wallclock();
if(numRetry_ < MAX_RETRIES &&
(btRuntime_->getMaxPeers() == 0 ||
btRuntime_->getMaxPeers()) > peerStorage_->countPeer()) {
btRuntime_->getMaxPeers() > peerStorage_->countPeer())) {
++numRetry_;
A2_LOG_DEBUG(fmt("Too few peers. peers=%lu, max_peers=%d."
" Try again(%d)",