now we get the nodecount after every cmd

This commit is contained in:
Denis 2012-12-04 14:41:27 +01:00
parent f70f425564
commit 756d7b7dda

View File

@ -52,6 +52,7 @@ public class RandomGenerator {
break;
case "add":
add(count);
System.out.println("Nodecount: " + nodes.size());
break;
case "remove":
if (count < nodes.size()) {
@ -59,6 +60,7 @@ public class RandomGenerator {
} else {
System.out.println("Can't remove that many nodes.");
}
System.out.println("Nodecount: " + nodes.size());
break;
case "populate":
if (splitted.length == 4) {
@ -74,6 +76,7 @@ public class RandomGenerator {
} else {
System.out.println("command has to have 3 parameters.");
}
System.out.println("Nodecount: " + nodes.size());
break;
case "status":
if(count < nodes.size()){