progress also depends on listener index now

This commit is contained in:
2022-01-26 17:35:31 +01:00
parent 0d0429983b
commit 28fe6eadb5
3 changed files with 9 additions and 4 deletions

View File

@@ -462,13 +462,12 @@ double Implementation::getProgress() const {
uint64_t currentFrameIndex = -1;
uint32_t flagsum = 0;
for (const auto &it : dataProcessor) {
for (const auto &it : listener) {
flagsum += it->GetStartedFlag();
currentFrameIndex =
std::min(currentFrameIndex, it->GetProcessedIndex());
currentFrameIndex = std::max(currentFrameIndex, it->GetListenedIndex());
}
// no data processed
if (flagsum != dataProcessor.size()) {
if (flagsum != listener.size()) {
currentFrameIndex = -1;
}