mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-07 12:28:25 +02: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<>();
|
||||
tableEntry.put("country", geolocation);
|
||||
tableEntry.put("avg_ping", ping.getAverage());
|
||||
tableEntry.put("min_ping", ping.getMin());
|
||||
tableEntry.put("max_ping", ping.getMax());
|
||||
tableEntry.put("avg_ping", formatters.decimals().apply(ping.getAverage()) + " ms");
|
||||
tableEntry.put("min_ping", ping.getMin() + " ms");
|
||||
tableEntry.put("max_ping", ping.getMax() + " ms");
|
||||
tableEntries.add(tableEntry);
|
||||
}
|
||||
return tableEntries;
|
||||
|
@ -864,7 +864,7 @@ public interface DatabaseTest {
|
||||
OptionalAssert.equals(1, container.getValue(PlayerKeys.KICK_COUNT));
|
||||
|
||||
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));
|
||||
|
||||
List<Nickname> expectedNicknames = Collections.singletonList(new Nickname("TestNick", -1, serverUUID()));
|
||||
|
Loading…
Reference in New Issue
Block a user