mirror of https://github.com/aria2/aria2
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Suppressed compiler warning. * src/AdaptiveURISelector.cc * src/DefaultPieceStorage.ccpull/1/head
parent
145799abc5
commit
fb8848d415
|
@ -1,3 +1,9 @@
|
|||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Suppressed compiler warning.
|
||||
* src/AdaptiveURISelector.cc
|
||||
* src/DefaultPieceStorage.cc
|
||||
|
||||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Defined virtual destructor.
|
||||
|
|
|
@ -52,7 +52,7 @@ private:
|
|||
unsigned int _nbServerToEvaluate;
|
||||
unsigned int _nbConnections;
|
||||
|
||||
static const unsigned int MAX_TIMEOUT = 60;
|
||||
static const time_t MAX_TIMEOUT = 60;
|
||||
|
||||
Logger* _logger;
|
||||
|
||||
|
|
|
@ -447,7 +447,8 @@ void DefaultPieceStorage::setFileFilter(IntSequence seq)
|
|||
fileIndexes.erase(std::unique(fileIndexes.begin(), fileIndexes.end()), fileIndexes.end());
|
||||
std::deque<std::string> filePaths;
|
||||
const FileEntries& entries = diskAdaptor->getFileEntries();
|
||||
for(size_t i = 0; i < entries.size(); i++) {
|
||||
int32_t entriesSize = entries.size();
|
||||
for(int32_t i = 0; i < entriesSize; i++) {
|
||||
if(std::find(fileIndexes.begin(), fileIndexes.end(), i+1) != fileIndexes.end()) {
|
||||
logger->debug("index=%d is %s", i+1, entries[i]->getPath().c_str());
|
||||
filePaths.push_back(entries[i]->getPath());
|
||||
|
|
Loading…
Reference in New Issue