Drilldown Module to server.html to fix WorldPie

This commit is contained in:
Rsl1122 2017-09-01 19:00:35 +03:00
parent d1de63db19
commit feeded7359
3 changed files with 7 additions and 4 deletions

View File

@ -141,8 +141,7 @@ public class JoinInfoPart extends RawData {
}
public void addSessions(Map<UUID, List<Session>> sessions) {
Verify.nullCheck(sessions);
this.sessions.putAll(sessions);
this.sessions.putAll(Verify.nullCheck(sessions));
}
public void addSessions(UUID uuid, List<Session> sessions) {

View File

@ -450,6 +450,7 @@ public class SessionsTable extends UserIDTable {
return getSessionInfoOfServer(Plan.getServerUUID());
}
// TODO Write tests for this method
public Map<UUID, List<Session>> getSessionInfoOfServer(UUID serverUUID) throws SQLException {
Optional<Integer> id = serverTable.getServerID(serverUUID);
if (!id.isPresent()) {
@ -494,6 +495,7 @@ public class SessionsTable extends UserIDTable {
}
}
// TODO Write tests for this method
public long getLastSeen(UUID uuid) throws SQLException {
PreparedStatement statement = null;
ResultSet set = null;
@ -514,6 +516,7 @@ public class SessionsTable extends UserIDTable {
}
}
// TODO Write tests for this method
public Map<UUID, Long> getLastSeenForAllPlayers() throws SQLException {
PreparedStatement statement = null;
ResultSet set = null;

View File

@ -82,12 +82,12 @@
</p>
</div>
<div class="column">
<p><b>Averages:</b>
<p><b>Averages:</b><br>
&#x2022; Session Length: ${sessionAverage}<br>
&#x2022; Players / Day: ${playersAverage}<br>
&#x2022; New Players / Day: ${playersNewAverage}<br>
<br>
<b>Total:</b>
<b>Total:</b><br>
&#x2022; Playtime: ${playtimeTotal}<br>
&#x2022; Sessions: ${sessionCount}<br>
&#x2022; Kills: ${killCount}<br>
@ -338,6 +338,7 @@
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/maps/modules/map.js"></script>
<script src="https://code.highcharts.com/mapdata/custom/world.js"></script>
<script src="https://code.highcharts.com/modules/drilldown.js"></script>
<script src="https://code.highcharts.com/modules/no-data-to-display.js"></script>
<script src="./js/activityPie.js"></script>
<script src="./js/playerGraph.js"></script>