From: Arnaud Giersch Date: Tue, 15 Feb 2011 09:52:20 +0000 (+0100) Subject: Print my own loads too with process:print_loads. X-Git-Tag: v0.1~128 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/635d04eb04fd9464021fcb59c4d63a2a329f0415 Print my own loads too with process:print_loads. --- diff --git a/process.cpp b/process.cpp index 0c3f784..c104ecd 100644 --- a/process.cpp +++ b/process.cpp @@ -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)