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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user