Salome HOME
Manage initnode and finalizenode in the foreachloop progress bar.
[modules/yacs.git] / src / engine / Proc.cxx
index 7e777d22f99b8e5783a102408f51ac679bae57f7..2eaaddaebe1799ec09b25fb53ee6be51f3f25c23 100644 (file)
@@ -232,17 +232,17 @@ std::string Proc::getNodeProgress(int numId)
 
 int Proc::getGlobalProgressPercent()
 {
-       list<ProgressWeight> weightList = getProgressWeight();
-       int weightDone = 0;
-       int weightTotal = 0;
-       int progressPercent = 0;
-       for(list<ProgressWeight>::const_iterator iter=weightList.begin();iter!=weightList.end();iter++)
-         {
-                 weightDone += (*iter).weightDone;
-                       weightTotal += (*iter).weightTotal;
-         }
+  list<ProgressWeight> weightList = getProgressWeight();
+  int weightDone = 0;
+  int weightTotal = 0;
+  int progressPercent = 0;
+  for(list<ProgressWeight>::const_iterator iter=weightList.begin();iter!=weightList.end();iter++)
+    {
+      weightDone += (*iter).weightDone;
+      weightTotal += (*iter).weightTotal;
+    }
   if (weightTotal > 0)
-       progressPercent = int(float(weightDone) / float(weightTotal) * 100);
+    progressPercent = int(float(weightDone) / float(weightTotal) * 100);
   return progressPercent;
 }