Author: mrogers
Date: 2006-11-03 09:36:56 +0000 (Fri, 03 Nov 2006)
New Revision: 10800
Modified:
trunk/apps/load-balancing-sims/phase7/sim/handlers/ChkInsertHandler.java
trunk/apps/load-balancing-sims/phase7/sim/handlers/RequestHandler.java
trunk/apps/load-balancing-sims/phase7/sim/handlers/SskInsertHandler.java
Log:
Closest location should be >= not >
Modified:
trunk/apps/load-balancing-sims/phase7/sim/handlers/ChkInsertHandler.java
===================================================================
--- trunk/apps/load-balancing-sims/phase7/sim/handlers/ChkInsertHandler.java
2006-11-03 01:07:56 UTC (rev 10799)
+++ trunk/apps/load-balancing-sims/phase7/sim/handlers/ChkInsertHandler.java
2006-11-03 09:36:56 UTC (rev 10800)
@@ -156,7 +156,7 @@
// Decrement the htl if the next node is not the closest so far
double target = Node.keyToLocation (key);
if (Node.distance (target, next.location)
- > Node.distance (target, closest))
+ >= Node.distance (target, closest))
htl = node.decrementHtl (htl);
node.log (this + " has htl " + htl);
// Consume a token
Modified: trunk/apps/load-balancing-sims/phase7/sim/handlers/RequestHandler.java
===================================================================
--- trunk/apps/load-balancing-sims/phase7/sim/handlers/RequestHandler.java
2006-11-03 01:07:56 UTC (rev 10799)
+++ trunk/apps/load-balancing-sims/phase7/sim/handlers/RequestHandler.java
2006-11-03 09:36:56 UTC (rev 10800)
@@ -71,7 +71,7 @@
// Decrement the htl if the next node is not the closest so far
double target = Node.keyToLocation (key);
if (Node.distance (target, next.location)
- > Node.distance (target, closest))
+ >= Node.distance (target, closest))
htl = node.decrementHtl (htl);
node.log (this + " has htl " + htl);
// Consume a token
Modified:
trunk/apps/load-balancing-sims/phase7/sim/handlers/SskInsertHandler.java
===================================================================
--- trunk/apps/load-balancing-sims/phase7/sim/handlers/SskInsertHandler.java
2006-11-03 01:07:56 UTC (rev 10799)
+++ trunk/apps/load-balancing-sims/phase7/sim/handlers/SskInsertHandler.java
2006-11-03 09:36:56 UTC (rev 10800)
@@ -140,7 +140,7 @@
// Decrement the htl if the next node is not the closest so far
double target = Node.keyToLocation (key);
if (Node.distance (target, next.location)
- > Node.distance (target, closest))
+ >= Node.distance (target, closest))
htl = node.decrementHtl (htl);
node.log (this + " has htl " + htl);
// Consume a token