Ensure that lowest speed check is done even when download speed is 0

pull/693/head
Tatsuhiro Tsujikawa 2016-06-21 23:25:24 +09:00
parent 2365c91994
commit 10b64e281a
2 changed files with 6 additions and 0 deletions

View File

@ -419,4 +419,8 @@ void DownloadCommand::installStreamFilter(
sinkFilterOnly_ = util::endsWith(name, SinkStreamFilter::NAME);
}
// We need to override noCheck() to return true in order to measure
// download speed to check lowest speed.
bool DownloadCommand::noCheck() const { return true; }
} // namespace aria2

View File

@ -72,6 +72,8 @@ private:
protected:
virtual bool executeInternal() CXX11_OVERRIDE;
virtual bool noCheck() const CXX11_OVERRIDE;
virtual bool prepareForNextSegment();
// This is file local offset