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/StreamFileAllocationEntry.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/StreamFileAllocationEntry.cc') diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc index e9ba48a0..c152f6fb 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -42,6 +42,7 @@ #include "prefs.h" #include "RequestGroup.h" #include "InitiateConnectionCommandFactory.h" +#include "DownloadContext.h" namespace aria2 { @@ -57,6 +58,7 @@ StreamFileAllocationEntry::~StreamFileAllocationEntry() {} void StreamFileAllocationEntry::prepareForNextAction(std::deque& commands, DownloadEngine* e) { + _requestGroup->getDownloadContext()->resetDownloadStartTime(); if(_nextCommand) { // give _nextCommand a chance to execute in the next execution loop. _nextCommand->setStatus(Command::STATUS_ONESHOT_REALTIME); -- cgit