Debug energy and hints

This commit is contained in:
Loic Guegan 2021-05-06 16:32:06 +02:00
parent fb38c4f0b7
commit 87dd421913
2 changed files with 5 additions and 5 deletions

View file

@ -96,6 +96,7 @@ static void obs_node(std::vector<std::string> 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<std::string> 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);
}