summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-21 17:35:06 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-21 17:35:06 +0000
commit5fa0272558e3ecf95e241ca3d995b9076361b6ff (patch)
treeb1ecd587bfcff7f87a4c24a444f59b98f75bdd2b /src
parent8ad0037ee28413f0928d6b5b8d6e3513dff118cb (diff)
Diffstat (limited to 'src')
-rw-r--r--src/TrackerInitCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TrackerInitCommand.cc b/src/TrackerInitCommand.cc
index 1f3b05c2..eefc636c 100644
--- a/src/TrackerInitCommand.cc
+++ b/src/TrackerInitCommand.cc
@@ -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;