Mercurial > hg > Members > tatsuki > Alice
changeset 79:6d0086a503d3 working
fix conf of ring
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 02 Mar 2012 16:08:17 +0900 |
parents | 481f322b3206 |
children | 54f5b5496bfe |
files | src/alice/test/topology/ring/FirstRingMessagePassing.java src/alice/test/topology/ring/RingTopologyConfig.java |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/test/topology/ring/FirstRingMessagePassing.java Wed Feb 29 22:45:00 2012 +0900 +++ b/src/alice/test/topology/ring/FirstRingMessagePassing.java Fri Mar 02 16:08:17 2012 +0900 @@ -33,7 +33,7 @@ long endTime = System.nanoTime(); long time = endTime - startTime; System.out.println(nodeNum + " " + time / count / 1000000.0); - return; + return; } FirstRingMessagePassing cs = new FirstRingMessagePassing(startTime, count, nodeNum);
--- a/src/alice/test/topology/ring/RingTopologyConfig.java Wed Feb 29 22:45:00 2012 +0900 +++ b/src/alice/test/topology/ring/RingTopologyConfig.java Fri Mar 02 16:08:17 2012 +0900 @@ -12,11 +12,11 @@ super(args); for (int i = 0; i < args.length; i++) { if ("-count".equals(args[i])) { - this.count = Integer.parseInt(args[i]); + this.count = Integer.parseInt(args[++i]); } else if ("-size".equals(args[i])) { - this.size = Integer.parseInt(args[i]); + this.size = Integer.parseInt(args[++i]); } else if ("-nodeNum".equals(args[i])) { - this.nodeNum = Integer.parseInt(args[i]); + this.nodeNum = Integer.parseInt(args[++i]); } } }