From 635d04eb04fd9464021fcb59c4d63a2a329f0415 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 15 Feb 2011 10:52:20 +0100 Subject: [PATCH 1/1] Print my own loads too with process:print_loads. --- process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5