pull/1/head
Tatsuhiro Tsujikawa 2006-03-21 17:35:06 +00:00
parent 8ad0037ee2
commit 5fa0272558
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ bool TrackerInitCommand::execute() {
"port="+Util::itos(e->torrentMan->getPort())+"&"+
"uploaded="+Util::llitos(e->torrentMan->getUploadedSize())+"&"+
"downloaded="+Util::llitos(e->torrentMan->getDownloadedSize())+"&"+
"left="+(e->torrentMan->downloadComplete() ? "0" : Util::llitos(e->torrentMan->totalSize-e->torrentMan->getDownloadedSize()))+"&"+
"left="+(e->torrentMan->totalSize-e->torrentMan->getDownloadedSize() <= 0
? "0" : Util::llitos(e->torrentMan->totalSize-e->torrentMan->getDownloadedSize()))+"&"+
"compact=1";
if(!event.empty()) {
url += string("&")+"event="+event;