]> AND Private Git Repository - loba.git/blobdiff - main.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
In compute_loop(), wait the duration of an *lb* iteration if there is nothing to do.
[loba.git] / main.cpp
index 12f1ae245140db23fa59c415f148edd5e34c7893..c37355396cc93b135aa8d9bbfb4725fb76dc7b99 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -92,7 +92,7 @@ static int simulation_main(int argc, char* argv[])
         ctrl_send_count.push(proc->get_ctrl_send_count());
         ctrl_recv_count.push(proc->get_ctrl_recv_count());
         double c = proc->get_convergence();
         ctrl_send_count.push(proc->get_ctrl_send_count());
         ctrl_recv_count.push(proc->get_ctrl_recv_count());
         double c = proc->get_convergence();
-        if (c != -1)
+        if (c != -1.0)
             convergence.push(c);
 
         // Synchronization barrier...
             convergence.push(c);
 
         // Synchronization barrier...
@@ -353,8 +353,9 @@ int main(int argc, char* argv[])
                  "times the total amount of data");
         PR_VALUE("Number of hosts that converged", "%u / %u",
                  convergence.get_count(), loads.get_count());
                  "times the total amount of data");
         PR_VALUE("Number of hosts that converged", "%u / %u",
                  convergence.get_count(), loads.get_count());
-        PR_VALUE("Date of first host convergence", "%g", convergence.get_min());
-        PR_VALUE("Date of last host convergence", "%g", convergence.get_max());
+        PR_VALUE("Times of convergence (min/max/avg/dev)", "%g / %g / %g / %g",
+                 convergence.get_min(), convergence.get_max(),
+                 convergence.get_mean(), convergence.get_stddev());
         XBT_INFO("`----");
 
     }
         XBT_INFO("`----");
 
     }