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

Private GIT Repository
Print my own loads too with process:print_loads.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 15 Feb 2011 09:52:20 +0000 (10:52 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 15 Feb 2011 09:52:20 +0000 (10:52 +0100)
process.cpp

index 0c3f78465042d8a7729edcfddb2e3be91be2e211..c104ecdf704d53fd61f6834a2bfc7f5053e64972 100644 (file)
@@ -269,7 +269,8 @@ void process::send(neighbor& nb, double amount)
     if (_XBT_LOG_ISENABLEDV((*cat), logp)) {                            \
         using std::tr1::bind;                                           \
         using std::tr1::placeholders::_1;                               \
-        XBT_XCLOG(cat, logp, "Neighbor loads:");                        \
+        XBT_XCLOG(cat, logp, "My load: %g (real); %g (expected).  "     \
+                  "Neighbor loads:", real_load, expected_load);         \
         std::for_each(vec.begin(), vec.end(),                           \
                       bind(&neighbor::print, _1, verbose, logp, cat));  \
     } else ((void)0)