2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

* src/ConsoleCalc.cc (calculateStat): Hide SPD after the 
download
	finished.
pull/1/head
Tatsuhiro Tsujikawa 2007-10-16 11:46:39 +00:00
parent e8a3167596
commit 343228629a
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
finished.
2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/Metalink2RequestGroup.cc (generate): Throw exception instead of

2
TODO
View File

@ -52,4 +52,4 @@
* Implement duplicate download checking in Bt
* Implement the feature to treat http/ftp as auxuality download method for BitTorrent
* Add PeerListenCommand to DownloadEngine only when it is really necessary.

View File

@ -79,9 +79,11 @@ ConsoleStatCalc::calculateStat(const RequestGroupManHandle& requestGroupMan,
cout << " "
<< "CN:"
<< firstRequestGroup->getNumConnection();
if(!firstRequestGroup->downloadFinished()) {
cout << " "
<< "SPD:"
<< fixed << setprecision(2) << stat.getDownloadSpeed()/1024.0 << "KiB/s";
}
if(stat.getSessionUploadLength() > 0) {
cout << " "
<< "UP:"