summaryrefslogtreecommitdiff
path: root/src/PeerInteractionCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-15 04:19:46 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-15 04:19:46 +0000
commit538a8fcfe7d56e2d3bea25599d015df94ab9e7e6 (patch)
tree174aba60cd077961b78b937b1ad1904c4c8c4857 /src/PeerInteractionCommand.cc
parent8dacfe45b86f262da482e41441db49363b41acb9 (diff)
2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compilation error with g++-4.3
Diffstat (limited to 'src/PeerInteractionCommand.cc')
-rw-r--r--src/PeerInteractionCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PeerInteractionCommand.cc b/src/PeerInteractionCommand.cc
index 8c7e3514..51a670ce 100644
--- a/src/PeerInteractionCommand.cc
+++ b/src/PeerInteractionCommand.cc
@@ -218,8 +218,8 @@ bool PeerInteractionCommand::executeInternal() {
if(btInteractive->countReceivedMessageInIteration() > 0) {
updateKeepAlive();
}
- if(peer->amInterested() && !peer->peerChoking() && peer->getLatency() < 1500 ||
- peer->peerInterested() && !peer->amChoking()) {
+ if((peer->amInterested() && !peer->peerChoking() && (peer->getLatency() < 1500)) ||
+ (peer->peerInterested() && !peer->amChoking())) {
if(maxDownloadSpeedLimit > 0) {
TransferStat stat = peerStorage->calculateStat();
if(maxDownloadSpeedLimit < stat.downloadSpeed) {