Skip to content

Commit

Permalink
fix #12771 for ThreadExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Nov 11, 2024
1 parent 94d9ada commit 2f9f464
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/threadexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ class ThreadData
mTotalFileSize = std::accumulate(mFiles.cbegin(), mFiles.cend(), std::size_t(0), [](std::size_t v, const FileWithDetails& p) {
return v + p.size();
});
for (const auto &fs : mFileSettings) {
mTotalFileSize += fs.filesize();
}
}

bool next(const FileWithDetails *&file, const FileSettings *&fs, std::size_t &fileSize) {
Expand All @@ -106,7 +109,7 @@ class ThreadData
if (mItNextFileSettings != mFileSettings.end()) {
file = nullptr;
fs = &(*mItNextFileSettings);
fileSize = 0;
fileSize = mItNextFileSettings->filesize();
++mItNextFileSettings;
return true;
}
Expand Down

0 comments on commit 2f9f464

Please sign in to comment.