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

Private GIT Repository
Update prev_load_broadcast.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 10 Feb 2011 21:56:56 +0000 (22:56 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 10 Feb 2011 21:56:56 +0000 (22:56 +0100)
process.cpp

index a92187ddaf550d0d3e8b9a7aabf9cd500a1f05e2..26e11370216a4de9b928035d467dadae39f7a041 100644 (file)
@@ -132,6 +132,7 @@ void process::load_balance_loop()
         // send
         std::for_each(neigh.begin(), neigh.end(),
                       bind(&process::ctrl_send, this, _1));
+        prev_load_broadcast = get_load();
 
         sleep_until_date(next_iter_after_date, opt::min_lb_iter_duration);
         ctrl_receive(0.0);