mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-18 09:28:44 +01:00
progress also depends on listener index now
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user