From 87dd4219138ec98999b50d08c7190a942072b33f Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 6 May 2021 16:32:06 +0200 Subject: Debug energy and hints --- src/simulator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/simulator.cc b/src/simulator.cc index d957471..0bf2d2f 100644 --- a/src/simulator.cc +++ b/src/simulator.cc @@ -96,6 +96,7 @@ static void obs_node(std::vector args) { if(isSender){ // If I am a sender Payload *p=new Payload(); if(useHint&&i.HasNext()){ + p->containsHint=true; p->hint=i.GetNextTS(); p->duration=i.GetNextDuration(); } @@ -132,8 +133,7 @@ static void obs_node(std::vector args) { i.GotoNextEvent(); nWakeUp++; // Increase the number of wake up } - - // Done + TURN_OFF() XBT_INFO("Observation node %s finished (nWakeUp:%d|nDataRcv:%d)",selfName.c_str(),nWakeUp,nDataRcv); } \ No newline at end of file -- cgit v1.2.3