summaryrefslogtreecommitdiff
path: root/src/BtFileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-10 16:10:31 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-10 16:10:31 +0000
commitbdff264d2ca973a2ba5126b2d021951f2a94e229 (patch)
tree1c8416da16ef5635e41efa2864a8e676db5f6291 /src/BtFileAllocationEntry.cc
parent82b80c33d8bb5c12ed571971666b396b3433cb4d (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.cc6
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);
}
}