jfjoch_process: Add indexing rate
This commit is contained in:
@@ -445,8 +445,22 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
// Progress log
|
||||
if (current_idx_offset > 0 && current_idx_offset % 100 == 0)
|
||||
logger.Info("Processed {} / {} images", current_idx_offset, images_to_process);
|
||||
if (current_idx_offset > 0 && current_idx_offset % 100 == 0) {
|
||||
std::optional<float> indexing_rate;
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(plots_mutex);
|
||||
indexing_rate = plots.GetIndexingRate();
|
||||
}
|
||||
|
||||
if (indexing_rate.has_value()) {
|
||||
logger.Info("Processed {} / {} images (indexing rate {:.1f}%)",
|
||||
current_idx_offset, images_to_process,
|
||||
indexing_rate.value() * 100.0f);
|
||||
} else {
|
||||
logger.Info("Processed {} / {} images (indexing rate N/A)",
|
||||
current_idx_offset, images_to_process);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Finalize per-thread indexing (if any per-thread aggregation is needed, though pool handles most)
|
||||
|
||||
Reference in New Issue
Block a user