summaryrefslogtreecommitdiff
path: root/src/RequestSlot.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-23 10:47:25 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-23 10:47:25 +0000
commit1fcd640d3b78b7a6c7b5f6cfdaf3e0f0304b3b47 (patch)
tree593a650d60b6bd61774449136daa7e245369881a /src/RequestSlot.cc
parent198b87fa3e564f6df1df8cbf961d655a59216d78 (diff)
* AbstractCommand.cc: casted timeout value to long long int.
* ChunkedEncoding.cc: fixed memory leak. * PeerInteractionCommand.cc: casted timeout value to long long int. * SleepCommand.cc: casted timeout value to long long int. * Data.cc: fixed memory leak. * Data.cc: fixed toLLInt(). * BitfieldMan.cc: fixed memory leak. * TorrentMan.cc: initialized storeDir to ".". * TorrentMan.cc: fixed memory leak. * TorrentMan.cc: corrected file paths of splitted files. * PeerAbstractCommand.cc: casted timeout to long long int. * main.cc: added delete(req) and delete(te->diskWriter). * RequestSlot.cc: casted timeout value to long long int. * Request.cc: fixed memory leak. * PendingMessage.cc: make HAVE messages sent only when peer does not have the piece. * Peer.{h,cc}: added hasPiece(int index).
Diffstat (limited to 'src/RequestSlot.cc')
-rw-r--r--src/RequestSlot.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RequestSlot.cc b/src/RequestSlot.cc
index 3729f47d..7793999e 100644
--- a/src/RequestSlot.cc
+++ b/src/RequestSlot.cc
@@ -55,7 +55,7 @@ void RequestSlot::setDispatchedTime() {
bool RequestSlot::isTimeout(int timeoutSec) const {
struct timeval now;
gettimeofday(&now, NULL);
- return Util::difftv(now, dispatchedTime) > timeoutSec*1000000;
+ return Util::difftv(now, dispatchedTime) > ((long long int)timeoutSec)*1000000;
}
bool RequestSlot::isNull(const RequestSlot& requestSlot) {