aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-05-06 16:32:06 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-05-06 16:32:06 +0200
commit87dd4219138ec98999b50d08c7190a942072b33f (patch)
treeedbe133f0888808227d9cced510a1220ebc09fc9 /src
parentfb38c4f0b773ad12c1e6c50862bd23d95a3c6ab1 (diff)
Debug energy and hints
Diffstat (limited to 'src')
-rw-r--r--src/simulator.cc4
1 files changed, 2 insertions, 2 deletions
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<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);
} \ No newline at end of file