mirror of https://github.com/aria2/aria2
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.ccpull/1/head
parent
dbc8f687c1
commit
84f02e7dd0
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue