summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java')
-rw-r--r--src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java b/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java
index 4556378..ba0440c 100644
--- a/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java
+++ b/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java
@@ -75,6 +75,7 @@ public class StatisticsGenerator
Future<Status> ret = threadPool.submit( task );
futureStatusList.add( ret );
} catch ( Exception e ) {
+ e.printStackTrace();
}
}
statusList.clear();
@@ -85,6 +86,7 @@ public class StatisticsGenerator
try {
status = future.get();
} catch ( Exception e ) {
+ System.out.println("Future timeout");
continue;
}
if ( status == null )
@@ -94,7 +96,8 @@ public class StatisticsGenerator
srv.address = status.getAddress();
srv.bytesReceived = status.getBytesReceived();
srv.bytesSent = status.getBytesSent();
- srv.clientCount = status.getClients().size();
+ srv.clientCount = status.getClientCount();
+ srv.serverCount = status.getServerCount();
srv.uptime = status.getUptime();
srv.timestamp = status.getTimestamp();
output.servers.add( srv );