mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-08 03:39:42 +01:00
Added ms unit to ping table
This commit is contained in:
parent
b754fa97e2
commit
d10aaa46d0
@ -192,9 +192,9 @@ public class JSONFactory {
|
|||||||
|
|
||||||
Map<String, Object> tableEntry = new HashMap<>();
|
Map<String, Object> tableEntry = new HashMap<>();
|
||||||
tableEntry.put("country", geolocation);
|
tableEntry.put("country", geolocation);
|
||||||
tableEntry.put("avg_ping", ping.getAverage());
|
tableEntry.put("avg_ping", formatters.decimals().apply(ping.getAverage()) + " ms");
|
||||||
tableEntry.put("min_ping", ping.getMin());
|
tableEntry.put("min_ping", ping.getMin() + " ms");
|
||||||
tableEntry.put("max_ping", ping.getMax());
|
tableEntry.put("max_ping", ping.getMax() + " ms");
|
||||||
tableEntries.add(tableEntry);
|
tableEntries.add(tableEntry);
|
||||||
}
|
}
|
||||||
return tableEntries;
|
return tableEntries;
|
||||||
|
@ -864,7 +864,7 @@ public interface DatabaseTest {
|
|||||||
OptionalAssert.equals(1, container.getValue(PlayerKeys.KICK_COUNT));
|
OptionalAssert.equals(1, container.getValue(PlayerKeys.KICK_COUNT));
|
||||||
|
|
||||||
List<GeoInfo> expectedGeoInfo =
|
List<GeoInfo> expectedGeoInfo =
|
||||||
Collections.singletonList(new GeoInfo("1.2.3.4", "TestLoc", 223456789));
|
Collections.singletonList(new GeoInfo("", "TestLoc", 223456789));
|
||||||
OptionalAssert.equals(expectedGeoInfo, container.getValue(PlayerKeys.GEO_INFO));
|
OptionalAssert.equals(expectedGeoInfo, container.getValue(PlayerKeys.GEO_INFO));
|
||||||
|
|
||||||
List<Nickname> expectedNicknames = Collections.singletonList(new Nickname("TestNick", -1, serverUUID()));
|
List<Nickname> expectedNicknames = Collections.singletonList(new Nickname("TestNick", -1, serverUUID()));
|
||||||
|
Loading…
Reference in New Issue
Block a user