From fd113d8e636d8dbd34885204a8a6015a76c06c82 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 9 Mar 2016 12:02:41 +0100 Subject: Gefrickel --- src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java | 4 +--- src/main/java/org/openslx/dnbd3/status/WebServer.java | 3 ++- src/main/java/org/openslx/dnbd3/status/output/ServerStats.java | 2 ++ 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main') diff --git a/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java b/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java index 777ce7a..1f3c25a 100644 --- a/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java +++ b/src/main/java/org/openslx/dnbd3/status/StatisticsGenerator.java @@ -84,11 +84,9 @@ public class StatisticsGenerator srv.address = status.getAddress(); srv.bytesReceived = status.getBytesReceived(); srv.bytesSent = status.getBytesSent(); - for ( Client c : status.getClients() ) { - srv.bytesSent += c.getBytesSent(); - } srv.clientCount = status.getClients().size(); srv.uptime = status.getUptime(); + srv.timestamp = status.getTimestamp(); output.servers.add( srv ); } output.timestamp = System.currentTimeMillis(); diff --git a/src/main/java/org/openslx/dnbd3/status/WebServer.java b/src/main/java/org/openslx/dnbd3/status/WebServer.java index 14d9a09..c8750b8 100644 --- a/src/main/java/org/openslx/dnbd3/status/WebServer.java +++ b/src/main/java/org/openslx/dnbd3/status/WebServer.java @@ -24,7 +24,8 @@ public class WebServer extends NanoHTTPD List pollers = new ArrayList<>(); pollers.add( new ServerPoller( "132.230.8.113", 5003 ) ); pollers.add( new ServerPoller( "132.230.4.60", 5003 ) ); - pollers.add( new ServerPoller( "132.230.4.1", 5003 ) ); + pollers.add( new ServerPoller( "10.4.128.38", 5003 ) ); + pollers.add( new ServerPoller( "132.230.4.2", 5003 ) ); imageGenerator = new StatisticsGenerator( pollers ); } diff --git a/src/main/java/org/openslx/dnbd3/status/output/ServerStats.java b/src/main/java/org/openslx/dnbd3/status/output/ServerStats.java index c58abb3..b915484 100644 --- a/src/main/java/org/openslx/dnbd3/status/output/ServerStats.java +++ b/src/main/java/org/openslx/dnbd3/status/output/ServerStats.java @@ -15,5 +15,7 @@ public class ServerStats public long bytesSent; @Expose public long bytesReceived; + @Expose + public long timestamp; } -- cgit v1.2.3-55-g7522