diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-11-10 16:10:31 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-11-10 16:10:31 +0000 |
| commit | bdff264d2ca973a2ba5126b2d021951f2a94e229 (patch) | |
| tree | 1c8416da16ef5635e41efa2864a8e676db5f6291 /src/BtFileAllocationEntry.cc | |
| parent | 82b80c33d8bb5c12ed571971666b396b3433cb4d (diff) | |
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Show an average download speed in Download results.
* src/BtFileAllocationEntry.cc
* src/DefaultPieceStorage.cc
* src/DownloadContext.cc
* src/DownloadContext.h
* src/DownloadResult.h
* src/RequestGroup.cc
* src/RequestGroupMan.cc
* src/StreamFileAllocationEntry.cc
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
| -rw-r--r-- | src/BtFileAllocationEntry.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc index 7d0b67cd..1c9c1112 100644 --- a/src/BtFileAllocationEntry.cc +++ b/src/BtFileAllocationEntry.cc @@ -33,11 +33,14 @@ */ /* copyright --> */ #include "BtFileAllocationEntry.h" + +#include <algorithm> + #include "BtSetup.h" #include "RequestGroup.h" #include "Command.h" #include "DownloadEngine.h" -#include <algorithm> +#include "DownloadContext.h" namespace aria2 { @@ -51,6 +54,7 @@ void BtFileAllocationEntry::prepareForNextAction(std::deque<Command*>& commands, { BtSetup().setup(commands, _requestGroup, e, e->option); if(!_requestGroup->downloadFinished()) { + _requestGroup->getDownloadContext()->resetDownloadStartTime(); _requestGroup->createNextCommandWithAdj(commands, e, 0); } } |
