From b3b66353721f15cb7f99d4d315b98f52cac8be26 Mon Sep 17 00:00:00 2001
From: "theodore.efremov" <theodore.efremov@cea.fr>
Date: Fri, 29 Nov 2024 09:42:12 +0100
Subject: [PATCH] Solved minor bug

---
 Projects/AlPhaPha/conversion/2024/convert.C | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Projects/AlPhaPha/conversion/2024/convert.C b/Projects/AlPhaPha/conversion/2024/convert.C
index 7b9762510..c2a584e75 100644
--- a/Projects/AlPhaPha/conversion/2024/convert.C
+++ b/Projects/AlPhaPha/conversion/2024/convert.C
@@ -62,11 +62,11 @@ void convert(int run=204){
     input_tree->GetEntry(i);
 
 
-    if (e % 100000  == 0 && e > 0 ) {
+    if (i % 100000  == 0 && i > 0 ) {
             auto now = std::chrono::high_resolution_clock::now();
             std::chrono::duration<double> elapsed = now - start;
-            double avgTimePerIteration = elapsed.count() / e;
-            double timeLeft = avgTimePerIteration * (Nentries - e);
+            double avgTimePerIteration = elapsed.count() / i;
+            double timeLeft = avgTimePerIteration * (nentries - i);
 
             std::cout << "********** Estimated time left: " << int(timeLeft) << " seconds **********" << "\r" << flush;
         }
-- 
GitLab