2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

In metadataGetMode, don't show SEEDING.
	* src/ConsoleStatCalc.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-11-23 11:28:22 +00:00
parent c1730aeea9
commit 95370fc11f
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
In metadataGetMode, don't show SEEDING.
* src/ConsoleStatCalc.cc
2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed ut_metadata data handling. Implemented Fixed ut_metadata data handling. Implemented

View File

@ -85,6 +85,8 @@ static void printProgress
#ifdef ENABLE_BITTORRENT #ifdef ENABLE_BITTORRENT
if(rg->getDownloadContext()->hasAttribute(bittorrent::BITTORRENT) && if(rg->getDownloadContext()->hasAttribute(bittorrent::BITTORRENT) &&
rg->getDownloadContext()->getAttribute(bittorrent::BITTORRENT)
.containsKey(bittorrent::METADATA) &&
rg->downloadFinished()) { rg->downloadFinished()) {
o << "SEEDING" << "(" << "ratio:"; o << "SEEDING" << "(" << "ratio:";
if(rg->getCompletedLength() > 0) { if(rg->getCompletedLength() > 0) {