Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ep cli: Fix finalize counter (#46198)

Agus Zubiagaf0e0213552f6
diff --git a/crates/edit_prediction_cli/src/progress.rs b/crates/edit_prediction_cli/src/progress.rs
index c2878e45812..13e2f50b7c7 100644
--- a/crates/edit_prediction_cli/src/progress.rs
+++ b/crates/edit_prediction_cli/src/progress.rs
@@ -396,7 +396,7 @@ impl Progress {
// Print summary if there were failures
if inner.failed_examples > 0 {
- let total_processed = inner.completed.len() + inner.failed_examples;
+ let total_processed = inner.completed.len();
let percentage = if total_processed > 0 {
inner.failed_examples as f64 / total_processed as f64 * 100.0
} else {