Author: mrogers
Date: 2006-09-14 14:13:14 +0000 (Thu, 14 Sep 2006)
New Revision: 10466
Modified:
trunk/apps/load-balancing-sims/phase6/Sim.java
Log:
CHK inserts, sorry about the large number of commits, I accidentally added
classfiles to the repository and I'm trying to fix it
Modified: trunk/apps/load-balancing-sims/phase6/Sim.java
===================================================================
--- trunk/apps/load-balancing-sims/phase6/Sim.java 2006-09-14 14:13:11 UTC
(rev 10465)
+++ trunk/apps/load-balancing-sims/phase6/Sim.java 2006-09-14 14:13:14 UTC
(rev 10466)
@@ -25,11 +25,9 @@
n2.connectBothWays (n3, 0.1);
n3.connectBothWays (n4, 0.1);
- for (int i = 0; i < 10; i++) {
- int key = Node.locationToKey (Math.random());
- if (i % 2 == 0) n4.cacheChk (key);
- Event.schedule (n0, 0.0, Node.GENERATE_REQUEST, key);
- }
+ int key = Node.locationToKey (Math.random());
+ Event.schedule (n0, 0.0, Node.GENERATE_INSERT, key);
+ Event.schedule (n4, 30.0, Node.GENERATE_REQUEST, key);
// Run the simulation
Event.run();