summaryrefslogtreecommitdiff
path: root/src/TrackerInitCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-31 15:41:27 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-31 15:41:27 +0000
commit3d3363a544290906b577c43583908ca00b2b0b0f (patch)
tree49e1964a467de391f334bc173249f6f102ec84ba /src/TrackerInitCommand.cc
parentf3096f8cd8693e472584bcd3e4dc0cebc154148c (diff)
Diffstat (limited to 'src/TrackerInitCommand.cc')
-rw-r--r--src/TrackerInitCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TrackerInitCommand.cc b/src/TrackerInitCommand.cc
index 130c5a26..4f254c06 100644
--- a/src/TrackerInitCommand.cc
+++ b/src/TrackerInitCommand.cc
@@ -57,8 +57,8 @@ bool TrackerInitCommand::execute() {
"info_hash="+Util::urlencode(e->torrentMan->getInfoHash(), 20)+"&"+
"peer_id="+e->torrentMan->peerId+"&"+
"port="+Util::itos(e->torrentMan->getPort())+"&"+
- "uploaded="+Util::llitos(e->torrentMan->getSessionUploadedSize())+"&"+
- "downloaded="+Util::llitos(e->torrentMan->getSessionDownloadedSize())+"&"+
+ "uploaded="+Util::llitos(e->torrentMan->getSessionUploadLength())+"&"+
+ "downloaded="+Util::llitos(e->torrentMan->getSessionDownloadLength())+"&"+
"left="+(e->torrentMan->getTotalLength()-e->torrentMan->getDownloadLength() <= 0
? "0" : Util::llitos(e->torrentMan->getTotalLength()-e->torrentMan->getDownloadLength()))+"&"+
"compact=1";