diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-10 07:34:20 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-10 07:34:20 +0000 |
| commit | 8d2ca8e03cb13e0016c59ce4db4ed64a6bdd8d46 (patch) | |
| tree | 7f533bfbc3fed66a66518b01652af0a786c87e67 /src/BtFileAllocationEntry.cc | |
| parent | 53c4de7ffdbf1631674ad2a7644b7062081444e2 (diff) | |
2010-07-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that DownloadContext::resetDownloadStartTime() never
be called in downloads whose total length is unknown. This causes
avg speed in Download Results is always 0 for these downloads.
* src/RequestGroup.cc
* src/BtFileAllocationEntry.cc
* src/StreamFileAllocationEntry.cc
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
| -rw-r--r-- | src/BtFileAllocationEntry.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc index 834a318e..3dc5d722 100644 --- a/src/BtFileAllocationEntry.cc +++ b/src/BtFileAllocationEntry.cc @@ -58,6 +58,8 @@ void BtFileAllocationEntry::prepareForNextAction BtSetup().setup(commands, getRequestGroup(), e, getRequestGroup()->getOption().get()); if(!getRequestGroup()->downloadFinished()) { + // For DownloadContext::resetDownloadStartTime(), see also + // RequestGroup::createInitialCommand() getRequestGroup()->getDownloadContext()->resetDownloadStartTime(); const std::vector<SharedHandle<FileEntry> >& fileEntries = getRequestGroup()->getDownloadContext()->getFileEntries(); |
