2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed the bug that the average speed is wrong in
	http/ftp/BitTorrent integrated download. Only the download bytes
	in BitTorrent were considered.
	* src/RequestGroup.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-01-31 13:01:25 +00:00
parent dbc8f687c1
commit 84f02e7dd0
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that the average speed is wrong in
http/ftp/BitTorrent integrated download. Only the download bytes
in BitTorrent were considered.
* src/RequestGroup.cc
2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Choose port for BitTorrent/DHT randomly from the specified range.

View File

@ -895,14 +895,14 @@ DownloadResultHandle RequestGroup::createDownloadResult() const
#ifdef ENABLE_BITTORRENT
if(!_peerStorage.isNull()) {
sessionDownloadLength =
sessionDownloadLength +=
_peerStorage->calculateStat().getSessionDownloadLength();
} else
}
#endif // ENABLE_BITTORRENT
if(!_segmentMan.isNull()) {
sessionDownloadLength =
_segmentMan->calculateSessionDownloadLength();
}
if(!_segmentMan.isNull()) {
sessionDownloadLength +=
_segmentMan->calculateSessionDownloadLength();
}
return
SharedHandle<DownloadResult>