From bdff264d2ca973a2ba5126b2d021951f2a94e229 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 10 Nov 2008 16:10:31 +0000 Subject: 2008-11-11 Tatsuhiro Tsujikawa 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 --- src/BtFileAllocationEntry.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/BtFileAllocationEntry.cc') 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 + #include "BtSetup.h" #include "RequestGroup.h" #include "Command.h" #include "DownloadEngine.h" -#include +#include "DownloadContext.h" namespace aria2 { @@ -51,6 +54,7 @@ void BtFileAllocationEntry::prepareForNextAction(std::deque& commands, { BtSetup().setup(commands, _requestGroup, e, e->option); if(!_requestGroup->downloadFinished()) { + _requestGroup->getDownloadContext()->resetDownloadStartTime(); _requestGroup->createNextCommandWithAdj(commands, e, 0); } } -- cgit