diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-01-24 00:04:58 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-01-24 00:04:58 +0900 |
| commit | 32a3c441af1f7554a5a8d2fbb3a4f742e741fc2b (patch) | |
| tree | 915f37ba28dd4a1795b39f5d45190f29cf267ff4 | |
| parent | 3b7566faf118510768d16912ecb47ce991495cdc (diff) | |
Fix bug: wrong parenthesis position in the condition
| -rw-r--r-- | src/DHTGetPeersCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DHTGetPeersCommand.cc b/src/DHTGetPeersCommand.cc index 0bc6cc44..01db7c79 100644 --- a/src/DHTGetPeersCommand.cc +++ b/src/DHTGetPeersCommand.cc @@ -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)", |
