From 8d2ca8e03cb13e0016c59ce4db4ed64a6bdd8d46 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 10 Jul 2010 07:34:20 +0000 Subject: 2010-07-10 Tatsuhiro Tsujikawa 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 --- 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 e771e758..0194bcc0 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -59,6 +59,8 @@ void StreamFileAllocationEntry::prepareForNextAction (std::vector& commands, DownloadEngine* e) { + // For DownloadContext::resetDownloadStartTime(), see also + // RequestGroup::createInitialCommand() getRequestGroup()->getDownloadContext()->resetDownloadStartTime(); if(getNextCommand()) { // give _nextCommand a chance to execute in the next execution loop. -- cgit