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

Private GIT Repository
Add missing include.
[loba.git] / loba_bulk.cpp
index 96f35391c2088bf72a6b62f61596c146838e8597..de9c0998cb266e421ba9a08f6d169e637385ea05 100644 (file)
@@ -54,11 +54,11 @@ void loba_bulk::load_balance()
     if (NbNwMinLoad && myLoad != 0.0) {
         for (unsigned i = 0; i < NbNeighbours; i++) {
             if (pneigh[i]->get_load() == minLoad) {
-                S[i] = floor(alpha * (myLoad - minLoad));
+                S[i] = std::floor(alpha * (myLoad - minLoad));
                 myS += S[i];
             } else {
                 if (pneigh[i]->get_load() < myLoad) {
-                    S[i] = floor(alpha * (myLoad - pneigh[i]->get_load()));
+                    S[i] = std::floor(alpha * (myLoad - pneigh[i]->get_load()));
                     myS += S[i];
                 }
             }