Author: mrogers
Date: 2006-11-17 11:52:30 +0000 (Fri, 17 Nov 2006)
New Revision: 10971
Modified:
trunk/apps/load-balancing-sims/phase7/sim/Node.java
Log:
Minor logging changes
Modified: trunk/apps/load-balancing-sims/phase7/sim/Node.java
===================================================================
--- trunk/apps/load-balancing-sims/phase7/sim/Node.java 2006-11-17 11:43:35 UTC
(rev 10970)
+++ trunk/apps/load-balancing-sims/phase7/sim/Node.java 2006-11-17 11:52:30 UTC
(rev 10971)
@@ -222,7 +222,7 @@
{
if (timerRunning) return;
timerRunning = true;
- log ("starting retransmission timer");
+ // log ("starting retransmission timer");
Event.schedule (this, RETX_TIMER, CHECK_TIMEOUTS, null);
}
@@ -235,6 +235,7 @@
if (p.messages != null) {
double now = Event.time();
for (Message m : p.messages) {
+ log ("sending " + m + " to " + p.dest);
double d = now - m.deadline;
delay *= DELAY_DECAY;
delay += d * (1.0 - DELAY_DECAY);
@@ -520,7 +521,7 @@
boolean stopTimer = true;
for (Peer p : peers()) if (p.checkTimeouts()) stopTimer = false;
if (stopTimer) {
- log ("stopping retransmission timer");
+ // log ("stopping retransmission timer");
timerRunning = false;
}
else Event.schedule (this, RETX_TIMER, CHECK_TIMEOUTS, null);