diff --git a/src/DownloadCommand.cc b/src/DownloadCommand.cc index de4c9221c..9d1c9b964 100644 --- a/src/DownloadCommand.cc +++ b/src/DownloadCommand.cc @@ -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 diff --git a/src/DownloadCommand.h b/src/DownloadCommand.h index d039c9f29..aeee4416a 100644 --- a/src/DownloadCommand.h +++ b/src/DownloadCommand.h @@ -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