summaryrefslogtreecommitdiff
path: root/src/SleepCommand.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/SleepCommand.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/SleepCommand.cc')
-rw-r--r--src/SleepCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SleepCommand.cc b/src/SleepCommand.cc
index 82fc6dc5..7d757bc3 100644
--- a/src/SleepCommand.cc
+++ b/src/SleepCommand.cc
@@ -36,7 +36,7 @@ SleepCommand::~SleepCommand() {
bool SleepCommand::execute() {
struct timeval now;
gettimeofday(&now, NULL);
- if(Util::difftv(now, checkPoint) >= wait*1000000) {
+ if(Util::difftv(now, checkPoint) >= ((long long int)wait)*1000000) {
engine->commands.push(nextCommand);
nextCommand = NULL;
return true;