Skip to content
Snippets Groups Projects
Commit b3b66353 authored by Theodore Efremov's avatar Theodore Efremov :hibiscus:
Browse files

Solved minor bug

parent 3779d1d0
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
Pipeline #370459 passed
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment