From 756d7b7dda7fa67393c6c000a9f26889579efc01 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 4 Dec 2012 14:41:27 +0100 Subject: [PATCH] now we get the nodecount after every cmd --- ws2012/P2P/uebungen/4/src/RandomGenerator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ws2012/P2P/uebungen/4/src/RandomGenerator.java b/ws2012/P2P/uebungen/4/src/RandomGenerator.java index 116829fb..bc4fc240 100644 --- a/ws2012/P2P/uebungen/4/src/RandomGenerator.java +++ b/ws2012/P2P/uebungen/4/src/RandomGenerator.java @@ -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()){