Indexer: Differentiate between no indexing attempted (e.g., indexer not available) and negative indexing result, so only the other one determines indexing rate

This commit is contained in:
2026-04-19 20:31:08 +02:00
parent dcec74bfb3
commit d5bbd7dbd5
4 changed files with 6 additions and 3 deletions
@@ -211,7 +211,7 @@ int IndexerThreadPool::GetFreeWorker() {
IndexerResult IndexerThreadPool::Run(const DiffractionExperiment &experiment, const std::vector<Coord> &recip) {
if (experiment.GetIndexingAlgorithm() == IndexingAlgorithmEnum::None)
return IndexerResult{.lattice = {}, .indexing_time_s = 0};
return IndexerResult{.lattice = {}, .indexing_time_s = 0, .executed = false};
// Check if there is available worker
const int task = GetFreeWorker();